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

Report as inappropriate.

K_O_P
K_O_P presents ...

2012/4/11

K_O_P HeliGame

Try to kill the enemy, by shooting at him, by pressing 'space'.
To move press 'up'.

You've got always 5 Lives more, than the enemy.
If you kill or hit an enemy, you will get Points.
If you get hurt, you will loose points.
If you've killed an enemy a new will appear, with 5 lives more. But you will although get 5 lives more and your lives will be refilled.

4488 views / 8 in the last 7 days

8 votes | 0 in the last 7 days

Tags: None

This scenario is a member of: High Scores


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.

RazzoRazzo

2012/4/11

Pretty good :D Could you help me out with the Gravity. How did you get it so smooth? How?! I demand answers :D
RazzoRazzo

2012/4/11

Love the health bars by the way!
K_O_PK_O_P

2012/4/12

mhh... the gravity... Well first I created a double parameter, that saves the y position (called yPosition and one, that saves the y-Speed (called ySpeed). then i rewrited the setLocation method to: setLocation(int x, double y){ super.setLocation(x,(int)y); yPosition=y;} and I added a method double getYPosition(){return yPosition;} and in my act-method is written: setLocation(getX(),getYPosition()+ySpeed); Then all I have to do for the gravity is raising ySpeed for 0.1 And if the up-key is pressed, I subtract 0.2 If you although want an x-move you have to do the same with x.
K_O_PK_O_P

2012/4/12

Hope that answered your question... :) If not, pls tell me! :)
Busch2207Busch2207

2012/4/12

Well done!
USBestUSBest

2012/4/14

Wow! The collision check is perfect. How you made this?
K_O_PK_O_P

2012/4/15

I'm using a code, Busch has written: http://www.greenfoot.org/topics/find/1590#post_1590
CarjadosCarjados

2013/5/25

Nice made! I just got bored when I had ~1500 points, so I let the enemy shoot me down. Maybe you want to add this: When two bullets (or missiles?) hit each other, they vanish. With this, you can block enemy bullets and he can block yours. I'd like it, just think about it. ;)
K_O_PK_O_P

2013/5/27

Sorry, but I can't find the source code any more...
JetLennitJetLennit

2013/5/30

Try decompiling this www.greenfoot.org/4770/applet_attachments/0001/2681/greenfoot363371785502048599.jar

See all comments

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

Who likes this?

Sn3aKyGuY MaxAlbert indrazgreenfoot USBest F-L-Undead Busch2207 SPower rmay168