This site requires JavaScript, please enable it in your browser!
Greenfoot
Username
Password
Remember Me?
Sign Up, Lost Password
Activity
About
Documentation
Download
Discuss
Scenarios
Gyracks
wrote ...
2016/4/20
Most simple way for wall
Gyracks
2016/4/20
#
So basically I've set up a small car to drive around the world and walls which are just images, I dont have any code apart from the stuff to move the car, what would be the most simple way to make sure the walls would stop the car?
danpost
2016/4/20
#
Gyracks wrote...
what would be the most simple way to make sure the walls would stop the car?
Basically, in the movement code of a single act cycle: (1) move (2) check wall intersection (3) if intersects, move back.
You need to login to post a reply.
X