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

2015/1/5

Need help when touching another actor

Thanatos Thanatos

2015/1/5

#
I want actor A when touching actor B and Greenfoot.isKeyDown("left") is pressed turn left. Actor A is moving upwards. How can I do this?
danpost danpost

2015/1/5

#
You can use the conditional operator '&&' to combine the two conditions into one. Then use 'setRotation' on the actor to avoid multiple turning of the actor.
Thanatos Thanatos

2015/1/6

#
Thank You!
You need to login to post a reply.