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

2023/12/18

Next LEVEL

kenNXstar kenNXstar

2023/12/18

#
I've been trying to get my game to transition into level2. But it won't I've tried adjusting my code but nothing works. The actor picks up 5 scrolls after that level1 is completed and should move into level 2. CODE BELOW /** * */ public void nextLevel() { if (scrollCollector > 5) { Greenfoot.setWorld(new Level2()); } }
Super_Hippo Super_Hippo

2023/12/18

#
Where is this code called from?
danpost danpost

2023/12/20

#
kenNXstar wrote...
I've been trying to get my game to transition into level2. But it won't I've tried adjusting my code but nothing works. The actor picks up 5 scrolls after that level1 is completed and should move into level 2. CODE BELOW << Code Omitted >>
Why are you checking for more than 5 scrolls picked up, if only picking up 5?
You need to login to post a reply.