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

2021/2/5

Retry button for pause menu

1
2
danpost danpost

2021/2/6

#
BogdanMicu wrote...
How do I figure out which level was active before the world switched?
You will not. It will be done in your pauseMenu world.
If not with isActive(), then how?
danpost wrote...
instead of getWorld(), you would use the name of the field.
This refers to:
if(getWorld() instanceof Lume)
danpost danpost

2021/2/6

#
BogdanMicu wrote...
The player is placed 10 pixels above the ground actor and it still freezes.
Do you initially see the player fall to the ground? Try at lines 36 and 53:
while (isTouching(Actor.class)) ...
BogdanMicu1 BogdanMicu1

2021/2/9

#
danpost wrote...
BogdanMicu wrote...
The player is placed 10 pixels above the ground actor and it still freezes.
Do you initially see the player fall to the ground? Try at lines 36 and 53:
while (isTouching(Actor.class)) ...
I tried it and still, whether I spawn him right on the ground or make him fall a few pixels, the effect is the same. Let's continue our conversation here, please, if you are still willing to help: https://www.greenfoot.org/topics/64038/0#post_142560
You need to login to post a reply.
1
2