HOME | DD

Published: 2009-01-13 22:11:21 +0000 UTC; Views: 8523; Favourites: 25; Downloads: 374
Redirect to original
Description
WAIT FOR IT TO LOAD >:CPlatformer + Shooter c:
Controls
Arrow keys - move
Up - Jump
Mouse - Aim
Click - Shoot
To jump up a wall, stand next to it, and hold down right/left arrow key, while pressing Up (jump button)!
To reload, put the mouse over the player.
The level is generated from a multidimensional array. So the level is tile based, but the game isn't.
Enjoy the engine.
REMEMBER, THIS IS AN ENGINE, NOT A GAME.
Bugs
- You can get stuck in some walls
- You can jump through the roof at the right-top corner
I'll fix those if I make this into a real game.
I also discovered Flash CS4 had a Sound libary, so I added some sounds from there to the game.
Thanks to ~AceDecade for giving me tips, and tutoring me a little about AS3, and encouraging me to learn it.
Related content
Comments: 89
awesty In reply to ??? [2009-01-15 00:02:11 +0000 UTC]
I got 12/0 bullets.
I would recommend changing it to WASD, and make a button to reload, maybe R.
Other than that I can't wait to see how this turns into a game.
👍: 0 ⏩: 1
JohnJensen In reply to awesty [2009-01-15 10:14:43 +0000 UTC]
if(keyIsDown(controlRELOAD)) {
if(shots < magazine) {
gun.play(); // reloading sound
if(magazine < ammo) {
ammo -= (magazine-shots);
shots += (magazine-shots);
} else {
shots += ammo;
ammo = 0;
}
}
}
That's my reloading code, how would I fix that 12/0 bug?
I changed it to WASD in my .fla now. And I'm extending the engine with enemies, objectives, and other stuff.
I like the reload with R idea. In my .fla it's SPACE right now. xD
Thanks for your comment. !
👍: 0 ⏩: 1
awesty In reply to JohnJensen [2009-01-18 04:56:21 +0000 UTC]
} else {
shots += ammo;
ammo = 0;
}
That is the part that is making the 12/0 happen. If the ammo is less than 7 it adds it all onto "shots". So if you have 6 bullets in shots and 6 bullets in ammo it adds all 6 bullets onto shots, giving you 12.
Try chaning it to this. I have no idea whether it will work or not though.
if(keyIsDown(controlRELOAD)) {
if(shots < magazine) {
gun.play(); // reloading sound
if(magazine < ammo || shots + ammo > magazine) {
ammo -= (magazine-shots);
shots += (magazine-shots);
} else {
shots += ammo;
ammo = 0;
}
}
}
👍: 0 ⏩: 1
allanthetom In reply to ??? [2009-01-14 19:31:33 +0000 UTC]
this is fun on its own, i can't imagine how great a full game would be, please please please make a game. even if it is like 3-5 levels
👍: 0 ⏩: 1
JohnJensen In reply to allanthetom [2009-01-14 19:41:08 +0000 UTC]
It'll have objectives in each level and be a GoldenEye (Nintendo 64) -ish shooter + platformer. 8D
👍: 0 ⏩: 1
JohnJensen In reply to allanthetom [2009-01-14 20:05:58 +0000 UTC]
GoldenEye = Old shooter with objectives.
👍: 0 ⏩: 1
JohnJensen In reply to zcollvee [2009-01-14 11:19:38 +0000 UTC]
I'll change the controls to that if I make it a real game then.
👍: 0 ⏩: 1
JohnJensen In reply to Psycho-Toaster [2009-01-14 11:19:53 +0000 UTC]
I'll change the controls WASD if I make it a real game then.
👍: 0 ⏩: 0
JaCe-SeDuCe In reply to ??? [2009-01-14 08:59:03 +0000 UTC]
heh, I remember the days when you resented AS3 for being too hard, looks like you'll pick it up in no time
👍: 0 ⏩: 1
AceDecade [2009-01-14 05:03:47 +0000 UTC]
Excellent work, good chap! Continuificate your studiation and became an AS3 hero! 8D
👍: 0 ⏩: 1
JohnJensen In reply to AceDecade [2009-01-14 11:36:47 +0000 UTC]
Yus! And not an AS3 an hero, but an AS3 hero!
👍: 0 ⏩: 1
Frankengoober10 In reply to ??? [2009-01-13 22:52:11 +0000 UTC]
I love it! Sorta like "Smiley's war" controls, I like how you can climb walls if you hold jump down and walk against them
👍: 0 ⏩: 1
JohnJensen In reply to Frankengoober10 [2009-01-14 17:06:53 +0000 UTC]
Thanks for your comment.
The wall jump thing is something I got off Megaman X
👍: 0 ⏩: 0
ChaserTech In reply to JohnJensen [2009-01-13 23:01:31 +0000 UTC]
lol It was awesome.
Also a couple of my friends are trying to get a parody flash together or something. If this thing even gets off the ground you wanna help?
👍: 0 ⏩: 0
JohnJensen In reply to frozenpandaman [2009-08-02 09:36:25 +0000 UTC]
Fixed in actual game.
👍: 0 ⏩: 0
<= Prev |