Basic character movement. What did I do wrong?
Ok so, all I am trying to do is create Left and Right movement. I know this is easy, but I want to know "why" it doesn't work this way. I created a group for my actor that is my character (currently a square sitting on top of a rectangle platform). I was successful creating left movement using the left arrow key on my keyboard. Right movement is a different story.
So inside my group called "controls" I created a rule called "move left". Inside the rule I created I set the key to left. I also changed behavior to adjust my speed and direction. Previewed it. Worked awesome. Second, within the same group I created a second rule for my right movement called "move right", did the above steps again, doesn't work.
My problem? Moving left is great. But when I move right, it still moves left. How can I fix it and what did I do wrong? Is it a simple hierarchy problem? Do I need a separate group for left, right, up, and down movement? Or can I condense them all to one group called controls like I have it?
Screen shot below:
http://i.imgur.com/UP7Y0.png
Edit 1:
Ok, so above is fixed, but it led to a new question. Is 180 perfect left movement? If so what is perfect right movement? 180 X 2 = 360, but I can input 360 or -180. I can however input 359 to get it to move right. But if I enter a value lower than 180, i know its small in this case would it actually make my character move slower or faster, or at angle slightly if the direction is off a little?
So inside my group called "controls" I created a rule called "move left". Inside the rule I created I set the key to left. I also changed behavior to adjust my speed and direction. Previewed it. Worked awesome. Second, within the same group I created a second rule for my right movement called "move right", did the above steps again, doesn't work.
My problem? Moving left is great. But when I move right, it still moves left. How can I fix it and what did I do wrong? Is it a simple hierarchy problem? Do I need a separate group for left, right, up, and down movement? Or can I condense them all to one group called controls like I have it?
Screen shot below:
http://i.imgur.com/UP7Y0.png
Edit 1:
Ok, so above is fixed, but it led to a new question. Is 180 perfect left movement? If so what is perfect right movement? 180 X 2 = 360, but I can input 360 or -180. I can however input 359 to get it to move right. But if I enter a value lower than 180, i know its small in this case would it actually make my character move slower or faster, or at angle slightly if the direction is off a little?
Best Answers
-
kobayaashi Posts: 143
Forgive me if I'm wrong (still a relative newbie, and haven't used keyboard-input instructions), but shouldn't one of your 'direction' values be a minus figure (-180)?
(If I'm mind-numbingly wrong, don't worry - someone will be along soon with the correct answer!) -
HC_DK Posts: 92
You will need to change the direction for the right to 0 instead of 180. Then you will go right.
Answers
I can have 180 to go left, but not right? if I put 350 in he will go right, but is 350 the number I want?
Edit:
Or I guess... since 180 X 2 = 360 I guess I should use 360 as my number. But what if I did use 350? Would it cause my character to move slightly slower??
BUT I can't input 360 either... But I can input 359. SO what is the correct direction for perfect right movement?
So simple. Thank you sir! The only thing I didn't try! lol
On the knob right beside the direction input, you can see a black dot. The dot is "pointing" the direction the actor will move.