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

2014/2/23

Hey guys , regarding movement

iOptical iOptical

2014/2/23

#
Hey guys, my teacher isnt that great... I just started Greenfoot and I want to know how do I make objects move from corner to corner, like I want a ball to go to the right, after reaching right it goes top right corner, then top left corner, then bottom left corner and etc... Could someone please help me.
danpost danpost

2014/2/23

#
In a bounded world, one simple way is to compare the location of the actor before the move with its location after the move. If no movement occurred, then turn to the left.
You need to login to post a reply.