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

Comments for Escape

Return to Escape

A new version of this scenario was uploaded on 2015-09-09 10:32:21 UTC -Publish source code -Game Over PopUp
A new version of this scenario was uploaded on 2015-09-09 13:07:27 UTC - You can shoot bullets in the direction of the mouse - new enemys will appear
ilhamilham

2015/9/9

Something broken with the Loop? Pressing Run feels like pressing Act button on Greenfoot
Super_HippoSuper_Hippo

2015/9/9

Same for me. It does work if you download it though.
Coder1337Coder1337

2015/9/9

I have only tested it offline. can't find the problem :/
danpostdanpost

2015/9/9

I downloaded your source code and took a look. I do not know why -- but your project should not have compiled and it should not have been allowed to be uploaded as is. The last line in your Label class (line 101) has too many Color parameters (3) for a GreenfootImage constructor. You should be getting an error message saying something about 'no suitable constructor found'.
Coder1337Coder1337

2015/9/9

mh this was set automatically and online in the documentation is a constructor with 5 parameters.
danpostdanpost

2015/9/9

My bad. I was not aware of that new GreenfootImage constructor. The only other possible issue that I see is the two 'if' statements that each could remove the Guy class. If the first one removes the actor, then the second one cannot properly execute (calling 'isTouching' while the actor is not in the world). However, this would not stop the execution after just one act cycle as it appears to be doing here on the site.
danpostdanpost

2015/9/10

I realized you used a 'try-catch' block for the second 'if' which probably solves what I was thinking was an issue. What about the filename at line 56 in the Guy class -- try removing the slash from the: "/ppl2.png" filename.
A new version of this scenario was uploaded on 2015-09-10 09:17:27 UTC
A new version of this scenario was uploaded on 2015-09-10 09:21:41 UTC
Coder1337Coder1337

2015/9/10

thx danpost, i removed the slashes and now it seems to work :)
A new version of this scenario was uploaded on 2015-09-10 10:30:09 UTC -Added shotgun powerups -Now points-per-kill