This site requires JavaScript, please enable it in your browser!
Greenfoot back
nmichael221
nmichael221 wrote ...

2014/11/18

how to move in the facing direction

nmichael221 nmichael221

2014/11/18

#
So in my world I have a character that when the left key is pressed, he turns left. But after he turns he is facing left but moving right. How can I get him to move left when he is facing left, and move right when facing right? :)
danpost danpost

2014/11/18

#
You say 'he turns left' when the left key is pressed. Does the rotation of the actor change or does its image change to appear facing the opposite direction?
nmichael221 nmichael221

2014/11/20

#
yes, he turns left and he faces left. But after I stop pressing the left key he is facing left and moving right.
danpost danpost

2014/11/21

#
nmichael221 wrote...
yes, he turns left and he faces left. But after I stop pressing the left key he is facing left and moving right.
That did not answer my question. Nowhere was there an option to answer that he 'turns'. I ask whether the rotation of the actor changes or does the image of the actor change when it changes the direction it faces. Also, you should post the code you currently have for the actor. Use the 'code' link below the reply box to insert code into you posts.
You need to login to post a reply.