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

Report as inappropriate.

Park.Hin.Yeung
Park.Hin.Yeung presents ...

2009/5/22

TargetPractice

PROJECT TITLE: Target Practice

PURPOSE OF PROJECT: Test your reflexes and hand-to-eye coordination by trying to fix the slider as close as possible to the centre of the target.

VERSION: Version 1.2
LAST UPDATED: May 23rd

HOW TO START THIS PROJECT: Press RUN to start the project. To refresh the game, REFRESH the page because otherwise there will be continuous background music. It seems to be impossible to make this stop when I stop the scenario with only the JDK.

AUTHOR(S): Park Hin Yeung

USER INSTRUCTIONS: The instructions are shown at the beginning of the game before actual gameplay.

LAST CHANGES:
v 1.2 Fixes to glitches and structure of game.
v 1.1 Minor fixes to slider speeds and sprites.

ACKNOWLEDGEMENTS: Anyone who helped.

6051 views / 17 in the last 7 days

3 votes | 0 in the last 7 days

Tags: game simulation physics fun shooting target practice sliders bars scenario park hin yeung

This scenario is a member of: CIS-May-2009


Your browser does not support the canvas tag.
ChinncChinnc

2009/5/22

glitched near the end of level three
omg why does it lag and glitch so much here??
mjrb4mjrb4

2009/5/23

Hi, I'm getting this error after I've made the first shot: java.lang.IllegalStateException: The actor has not been inserted into a world so it has no location yet. You might want to look at the method addedToWorld on the Actor class. at greenfoot.Actor.failIfNotInWorld(Actor.java:620) at greenfoot.Actor.getX(Actor.java:139) at Gun.countBullets(Gun.java:47) at Gun.move(Gun.java:34) at Gun.act(Gun.java:25) at greenfoot.core.Simulation.runOneLoop(Simulation.java:288) at greenfoot.core.Simulation.run(Simulation.java:158) This generally means that there's something wrong on line 47 of Gun.java - most likely you've removed an object and then tried to call a method on it that depends on it still being in the world. If you're still stuck, post the source and we can take a look.
If its the error where tons of guns stack on top of each other its due to the lagging here in greenfoot gallery. Try and let the slider move back and forth a few times before shooting.
A new version of this scenario was uploaded on Sat May 23 14:40:29 UTC 2009
ChinncChinnc

2009/5/23

if you press 2 first, it just fires
mjrb4mjrb4

2009/5/23

Hmm, it also got stuck for me once when I pressed 2, nothing happened. The error shouldn't happen due to lag on the gallery, chances are you're doing something either very special or a bit dodgy in your code... How are you declaring / setting your images? If you upload the source we should be able to work out what's going on.
GreenThumbGreenThumb

2009/5/24

takes way to long to load..
Cash_CashCash_Cash

2009/5/24

haha nice game
FreezerstingFreezersting

2009/5/24

The scenario stops after i get one shot, and when i click run again it just shoots and stops again o_o

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

Who likes this?

Amil dakota Cash_Cash