Deviation Actions

DCLeadboot's avatar

Game Prototype 3

By
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! :D

Frederick is Copyright © me.
Image details
Image size
550x400px 227.27 KB
Published:
© 2006 - 2021 DCLeadboot
Comments31
Join the community to add your comment. Already a deviant? Log In
JohnJensen's avatar
BUG:

If I Jump and clicks "X" many times then he keeps in air for sometime.. err.. I hope u get meh point..
DCLeadboot's avatar
You mean that bit when Fred does his backflip-kick and he hangs in space for a second?
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.
Mihoko-Haki's avatar
Yay I finally beat it!
Wow, that's a really fun game. Nice job!
I haven't found any bugs yet either. :3
DCLeadboot's avatar
I had to make sure of bugs, so I tested it myself. ;)
Thanks for the compliments! :D
Marni12ox's avatar
one thing can you tell me how to make like when i am near the rabbits they attack?
DCLeadboot's avatar
Well, in this case I set up a distance detection with this code:

/* 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;
}
JohnJensen's avatar
try
x_dist = _root.player._x - _x;
y_dist = _root.player._y - _y;
dist = Math.sqrt(x_dist*x_dist+y_dist*y_dist);
:#1:

But the above message is also two years old, so meh.

=P
Junialdu's avatar
THE COOLEST OF THE THREE PROTOTYPE GAMES, but one thing that i :salute: is that when you attack in air, he does a kick-straight-up-summersault, that is what makes it the coolest!!!
DCLeadboot's avatar
Thanks! I always planned to have Frederick punch his enemies when on ground and kick out if he was jumping - but considering his short legs, I thought it would work better doing the backflap-kick (inspired by a Sonic the Hedgehog sprite anim, I think).
He's a very athletic ferret, so that's no sweat! ;)
countconkula's avatar
WOW!!! You've gotten really great in such a short amount of time!! I love how his midair backflipkick! I can't wait to see what you come up with next!
DCLeadboot's avatar
I have a few ideas up my sleeve... :plotting:
furocious-studios's avatar
:crash: grrr

:steaming:

Hehe, took me 4 tries but I got it. Darn games are too tuff for and old duffer like me. :lol: jk

Keep up the great work :D
DCLeadboot's avatar
The Killer Rabbits know no mercy... :evillaugh:
Thanks!
Marni12ox's avatar
Cool i love it!
il fav it:D
DCLeadboot's avatar
Thanks! Glad you enjoyed it! :D
JohnJensen's avatar
You must totally tell me how you made this..
DCLeadboot's avatar
Hmmm, where to begin...
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.
JohnJensen's avatar
Can you note me?
WolfBoy300's avatar
Nice one :) I got "Ay Champion!" ...and two game overs =P
DCLeadboot's avatar
Beaten by a rabbit? Twice? :giggle:
Ah, well! At least you beat them!
Black-and-Blue12's avatar
Well done. Much improved. Except for the health bar....
But great job!
DCLeadboot's avatar
Hmmm, thanks. :hmm: Any way I could improve the health bar?
Join the community to add your comment. Already a deviant? Log In