HOME | DD

JohnJensen — Shooter Engine AS3 by-nc-nd

Published: 2009-01-13 22:11:21 +0000 UTC; Views: 8523; Favourites: 25; Downloads: 374
Redirect to original
Description WAIT FOR IT TO LOAD >:C

Platformer + 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

GG-lover [2009-01-15 01:37:37 +0000 UTC]

Fantastic! lol

👍: 0 ⏩: 1

JohnJensen In reply to GG-lover [2009-01-15 10:18:37 +0000 UTC]

Thanks

👍: 0 ⏩: 1

GG-lover In reply to JohnJensen [2009-01-17 00:18:10 +0000 UTC]

lol welcome!

👍: 0 ⏩: 0

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

JohnJensen In reply to awesty [2009-01-18 22:12:44 +0000 UTC]

Haha it works! Thanks

👍: 0 ⏩: 0

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

allanthetom In reply to JohnJensen [2009-01-14 19:48:46 +0000 UTC]

"goldeneye" ?
also, yay

👍: 0 ⏩: 1

JohnJensen In reply to allanthetom [2009-01-14 20:05:58 +0000 UTC]

GoldenEye = Old shooter with objectives.

👍: 0 ⏩: 1

allanthetom In reply to JohnJensen [2009-01-14 20:07:24 +0000 UTC]

ohh kool

👍: 0 ⏩: 0

Hypothermial-Moron [2009-01-14 12:50:18 +0000 UTC]

Wow, man!

👍: 0 ⏩: 1

JohnJensen In reply to Hypothermial-Moron [2009-01-14 14:46:33 +0000 UTC]

👍: 0 ⏩: 1

Hypothermial-Moron In reply to JohnJensen [2009-01-14 22:03:06 +0000 UTC]

👍: 0 ⏩: 0

napzter [2009-01-14 11:28:44 +0000 UTC]

Den er frakkot.

👍: 0 ⏩: 1

JohnJensen In reply to napzter [2009-01-14 11:30:52 +0000 UTC]

Tak, den herre. C:!

👍: 0 ⏩: 0

zcollvee [2009-01-14 10:39:23 +0000 UTC]

um... controls should be WASD
nice game though.

👍: 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

zcollvee In reply to JohnJensen [2009-01-15 16:15:41 +0000 UTC]

yus!

👍: 0 ⏩: 0

Psycho-Toaster [2009-01-14 10:27:07 +0000 UTC]

Arrow key controls ftl ):

👍: 0 ⏩: 2

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

zcollvee In reply to Psycho-Toaster [2009-01-14 10:38:52 +0000 UTC]

yesus

👍: 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

JohnJensen In reply to JaCe-SeDuCe [2009-01-14 11:36:11 +0000 UTC]

Lmao, I know right. xD

👍: 0 ⏩: 0

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

JohnJensen In reply to JohnJensen [2009-04-04 21:24:19 +0000 UTC]

oh u

👍: 0 ⏩: 1

JohnJensen In reply to JohnJensen [2009-04-04 21:24:27 +0000 UTC]

What?

👍: 0 ⏩: 1

JohnJensen In reply to JohnJensen [2009-04-04 21:24:37 +0000 UTC]

👍: 0 ⏩: 0

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 [2009-01-13 22:31:28 +0000 UTC]

XD I jumped through the roof.

👍: 0 ⏩: 1

JohnJensen In reply to ChaserTech [2009-01-13 22:38:08 +0000 UTC]



Did you like the engine?

👍: 0 ⏩: 1

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

frozenpandaman [2009-01-13 22:13:28 +0000 UTC]

I got 11/0 bullets.

👍: 0 ⏩: 2

JohnJensen In reply to frozenpandaman [2009-08-02 09:36:25 +0000 UTC]

Fixed in actual game.

👍: 0 ⏩: 0

JohnJensen In reply to frozenpandaman [2009-01-13 22:15:28 +0000 UTC]

..That's weird.

👍: 0 ⏩: 0