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

2020/11/22

Credits at the end of a game

Gametodie2 Gametodie2

2020/11/22

#
hello, for school me and my team members have to make an escape game in Greenfoot. we would like to have credits at the end of the game but we have no idea how we should do this. Is there anyone who could help us? thanks in advance
danpost danpost

2020/11/22

#
Gametodie2 wrote...
hello, for school me and my team members have to make an escape game in Greenfoot. we would like to have credits at the end of the game but we have no idea how we should do this. Is there anyone who could help us? thanks in advance
Use a separate World type for the credits. Make use of the GreenfootImage class to apply the text and, if desired, images to the background image of the world.
Gametodie2 Gametodie2

2020/11/22

#
Thanks! Silly of me not having thought of that before!
Gametodie2 Gametodie2

2020/11/22

#
Now I have made an image and it moves. Only it moves to the right instead of up. Does anyone know how I change this? Also, I would like the image to continue running after it hits the edge of the world. Is this possible or should I use the removeObject () command to remove the image when it hits the border? Thanks in advance!
danpost danpost

2020/11/22

#
Gametodie2 wrote...
Now I have made an image and it moves. Only it moves to the right instead of up. Does anyone know how I change this?
Use setLocation instead of move (use current location as initial position).
I would like the image to continue running after it hits the edge of the world. Is this possible or should I use the removeObject () command to remove the image when it hits the border?
You should use removeObject regardless. However, you can have it move (as an actor's image) totally off screen before removing by making the world unbounded (refer to alternate World class constructor).
Gametodie2 Gametodie2

2020/11/22

#
It functions! Thank you very much!
You need to login to post a reply.