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

2012/11/26

Hey Friends~ getOneObjectAtOffset HELP T.T

leeyong0 leeyong0

2012/11/26

#
Hey Friends, currently I'm creating a Greenfoot game called 'Race!!' It's where you outrace your opponent could be a player or a computer, but I'm that far ahead yet. There are 4 consisting actors. There is 'Car1' and 'Car2' which are controlled by the player, and there is 'Barrier1' and 'Barrier2.' NOW WITH THE PROBLEM! This 'Barrier2' is a very small 'object' on Greenfoot, and I intend to use it as a the word itself a barrier around the track picture that I've gotten from the internet. The object itself is barely visible on the map. I wish to make it that if 'Car1 and 'Car2' intersects with it immediately stops and it's direction is only to go back or turn left or right.. Even a suggestion would be greatly appreciated Sincerely, Your Friend,
danpost danpost

2012/11/26

#
You may want to look at the code of my Barriers and Bars scenario for an idea of how to accomplish this.
leeyong0 leeyong0

2012/11/27

#
I wuv yu~ nohomo but iwuvyu~
You need to login to post a reply.