Basic character movement. What did I do wrong?

osakamitsuosakamitsu Member Posts: 70
edited June 2012 in Working with GS (Mac)
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?

Best Answers

  • kobayaashikobayaashi Posts: 143
    Accepted Answer
    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_DKHC_DK Posts: 92
    Accepted Answer
    You will need to change the direction for the right to 0 instead of 180. Then you will go right.

Answers

  • osakamitsuosakamitsu Member Posts: 70
    edited June 2012
    Actually yes you are right, BUT I was confused to this as well... it won't let me input -180. So part of my silly problem has been solved only to lead to another...

    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?

  • osakamitsuosakamitsu Member Posts: 70
    edited June 2012
    D:

    So simple. Thank you sir! The only thing I didn't try! lol
  • HC_DKHC_DK Member Posts: 92
    Yes, it is simple :-)

    On the knob right beside the direction input, you can see a black dot. The dot is "pointing" the direction the actor will move.
  • osakamitsuosakamitsu Member Posts: 70
    edited June 2012
    Yeah i knew that after figuring it out the hard way, but I was always ending up at the 350-360 section of that dial when trying to go right... guess I should have gone the other way... haha
Sign In or Register to comment.