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

Report as inappropriate.

Coder1337
Coder1337 presents ...

2015/9/9

Escape

Escape from the bad orange guys. if your health is zero you are game over. Sometimes a heart will pop up. Take it and gain additional health!

1283 views / 98 in the last 7 days

Tags: game

There is no HTML 5 translation of this scenario available.
View legacy version (requires Java plugin)

This scenarios uses Java features that are not available for use after conversion to HTML 5. Please try the legacy version, which requires the Java plugin to be installed.

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

See all comments

Want to leave a comment? You must first log in.

Who likes this?

No votes yet.