This is my third game prototype -- I've just expanded on what I started with!
Frederick still has to reach the goal in each stage, but the obstacles are complicated and there are now hazards...
Frederick has fallen into a dangerous warren, full of spikes and killer rabbits!
To escape their lair alive, avoid the spikes and knock out the rabbits. Try not to get attacked!
I have also added sound effects for this version!
Frederick is Copyright © me.
Frederick still has to reach the goal in each stage, but the obstacles are complicated and there are now hazards...
Frederick has fallen into a dangerous warren, full of spikes and killer rabbits!
To escape their lair alive, avoid the spikes and knock out the rabbits. Try not to get attacked!
I have also added sound effects for this version!

Frederick is Copyright © me.
If I Jump and clicks "X" many times then he keeps in air for sometime.. err.. I hope u get meh point..
That in itself was quite intentional. However, perhaps I should put something in the code to make him only do the attack once.
Say, a value called 'attacking' comes true when you press 'X' (which prevents you from attacking again) and doesn't become false until 'X' is released.
Wow, that's a really fun game. Nice job!
I haven't found any bugs yet either. :3
Thanks for the compliments!
/* Detect the player's proximity. If he is too close, he will stand ready for combat. */
x_dist = _root.player._x - _x; //Relative x Distance
y_dist = _root.player._y - _y; //Relative y Distance
if (x_dist > -75 && x_dist < 75) {
if (y_dist > -75 && y_dist < 75) {
state = 1; //Change to standing state
}
}
In the standing state, there is code that tells the rabbit to switch to an attacking state:
/* How regularly will the rabbit hit out? The lower number range given in random(), the higher the chances are. */
hitrand = random(30); //chances of drawing 1 are 30 to 1
if (hitrand == 1) {
state = 3;
}
x_dist = _root.player._x - _x;
y_dist = _root.player._y - _y;
dist = Math.sqrt(x_dist*x_dist+y_dist*y_dist);
But the above message is also two years old, so meh.
He's a very athletic ferret, so that's no sweat!
Hehe, took me 4 tries but I got it. Darn games are too tuff for and old duffer like me.
Keep up the great work
Thanks!
il fav it
The player is basically the same. All I did with him is add the hurt, die and attack states -- and a check for collision with spikes.
The enemies use a piece of script that tells them to prowl or stand still (speed set to 0).
The health bar uses a global value to calculate its frame.
Ah, well! At least you beat them!
But great job!
Just a weird thing I have....
Great job mate.
Thanks!