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

2012/3/7

moving through objects

mrlegs mrlegs

2012/3/7

#
This might be a stupid question, since I am not good with java at all. But can anyone help me with making it so that my actor will stop moving through other actors( like a man moving through a river). I saw something like it in the wombat tutorial but i cant figure it out. thank you. mrlegs
danpost danpost

2012/3/7

#
If the river is part of the world's background, you would have to either map the rivers and cross-check using the map, or check the color where the man moves. Move him, then check, If is has a high amount of blue (for the river) then back him up and turn him.
You need to login to post a reply.