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

Report as inappropriate.

Green_Code
Green_Code presents ...

2014/10/12

scrollWorld

A game where you have to avoid triping over hurdles.

2850 views / 25 in the last 7 days

1 vote | 0 in the last 7 days

Tags: game simulation

Your browser does not support the canvas tag.
NikZNikZ

2014/10/12

I suggest using getIntersectingObject() to handle collisions, I can survive by not moving at all. Also, I would not recommend having a separate class for jumping. You could use setImage() to change the image of the runner
Green_CodeGreen_Code

2014/10/12

Yes, I was planning that as you can see with the jumping class but was unsure how to implement it and your comment reminded me of the setImage() function; the only problem is that I don't know a way of making it so the runner is invulnerable whilst jumping can you think of a way. I posted it on here to get peoples opinions on how it could be improved, thanks for the input :)
NikZNikZ

2014/10/12

You can use a variable like boolean isJumping then a method getIsJumping() so the Hurdle knows whether or not to trip the player.
Green_CodeGreen_Code

2014/10/14

Thanks!
lordhersheylordhershey

2014/10/15

Space the hurdles out a bit so you can escape.
Green_CodeGreen_Code

2014/10/16

In reply to lordhershey: Ha, that was exactly what I was planning to do.
A new version of this scenario was uploaded on Thu Oct 16 19:34:37 UTC 2014
Green_CodeGreen_Code

2014/10/16

Hey it now uses getOneIntersectingObject instead so it's a lot harder don't worry though for soon I shall add a jump function Hooray!
Green_CodeGreen_Code

2014/10/20

In the next Update: -Have a jump function. -Add a timer and scoreboard.

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

Who likes this?

lordhershey