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

2014/10/18

How would I go about making a checkpoint?

rrose5 rrose5

2014/10/18

#
I have created a class with a picture but I have no idea how I would go about making it so that when the actor dies he gets set back to there. Any suggestions?
Alwin_Gerrits Alwin_Gerrits

2014/10/18

#
If the program simply is in one screen it's prety easy, just put in a command like
setLocation(x,y);
Define the x and y-coördinates and you should be done. If it's something like a sidescrolling game that's a bit different.... you might want to rebuild the world in that case, but that's where some trouble might appear. Anyway, if you want more suggestions or something just post a short comment you need more help behind mine and you should be fine.
You need to login to post a reply.