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

2014/12/23

i could use help im new to greentfoot.

redouan75 redouan75

2014/12/23

#
hey people! im building my first game because im kind of interested in doing so. and i was wondering if someone knew what the code was to for example when you have a car and you ride it till the end of the right of your screen (wall) to make the car dissappear and then randomly spawn a new car on the same place where you started or a random place in the world. Could someone help me out? thanks for reading :)
danpost danpost

2014/12/23

#
Does it have to be the same car or can it be a different one (possibly a different color car)? (if it will always be the same color, then using 'setLocation' would be easier than removing and adding) What part are you having problems with? * making the car disappear * making the car reappear or spawn * random placement Show what code you have tried (use the 'code' link below the reply box to insert code into posts) working on one part at a time.
You need to login to post a reply.