TopDown Shooter Engine
Game Maker Version: 6.1This is an amazing Top down shooter engine that shows how to do weapon changing, realistic bullet collisions, and bullet accuracy.
-By slayer_jojo
This one is for the more advanced GM users to use. If you just play the engine you're not going to know what's happening, so you won't be able to appreciate it so read on.
Here is a list of what is included in the example:
- Realistic bullets (VERY realistic)
- Firing accuracy
- Bullets calculated 3 dimensionally (meaning they can fly over things)
- Weapon changing system
- Walking with sensitivity
- Ricochets in 3d sound
Realistic bullets and Firing accuracy
First, this example does not use bullet objects. You can not even see the bullets, you see where they hit. It is more realistic this way.
The circle on the screen is the accuracy. Bullets being shot will go in the direction of somewhere in the circle, 3 dimensionally. This means that not only does each bullet have an angle from which it travels from the top view, but an angle from the side view (which you can't really see). Why? Because this way, the bullets sometimes hit the ground. Also, they can fly over people and objects, such as sandbags. You can easily set each objects height, in pixels in the create event. You could also use this mechanism to change an AI's "height" when it crouches, making it harder to hit.
You will notice every time you shoot and walk, your accuracy decreases. The lower the accuracy the more wild the bullets go, meaning more hitting the ground or going too high. This forces players to use more strategy in a game.
Ricochets in 3d sound
When a bullet hits an object, person or the ground you can set different ricochet sounds to be played. The best part is they're played in 3d mode. You set the sound for bullets hitting the ground in each room creation code, so different rooms can have different types of grounds. Each object can have different ricochets too. You can also see the ricochets.
Weapon changing system
The example has six preset weapons: a handgun, sniper m16, mp5, g36 and shotgun. The weapon statistics are stored in an [2d]array. Change weapons with the mouse wheel. VERY easy to add new weapons. The is a two slot ammo system (ammo in gun, and total ammo). Basic reload system too.
Walking with sensitivity
You can walk forward and backwards with keys "w" and "s", and sideways with "a" and "d".
You face towards the cursor, but moving the mouse slightly doesn't change your direction. It is only sensitive to 20 degrees (or so) of difference to the direction is it already pointing. A footstep sound plays on each footstep. Is seemed great when I added this but sometimes it gets confusing...
Much more to be added
I still plan to add ai, letting them shoot back. Their bullets will be just like your's, and will make ricochets. (This will be REALLY cool, when they're shooting you) Also I will add much to the weapons system. I'll also make it so your guy can get "freaked out" when under fire and have hard breathing sounds playing. Someday this may be a game and not an engine.
Screenshot:
UPDATES
v6.0.1
Changed the events User Defined 2 to User Defined 3 in obj_enemy and added a new User Defined 2, which executes when the instance is directly hit. This will make it easier to add your own AI. I also documented the three events via comments
v6.0.0
5/10/07 Improved HUD so you can see graphically your firing mode. Little update really.
5/4/07 Added shotgun, g36, ammo system, reload system, and weapon modes: Burst, semi-auto and full-auto.
5/3/07 Improved the map to look more like a level. Also the screen follows the mouse MUTCH more smoothly. They way it is now you can look farther too.
5/3/07 Now it says the name of the gun you're holding along with an image of it.
5/2/07 Added some eye candy to the shooting. You will see quick yellow streaks when you shoot.
5/1/07 Lowered move sensitivity from 30 to 20 degrees. Changed the sniper shooting sound. Also made a nicer looking rectile, with alpha and made a new screenshot.
5/3/07 Now it says the name of the gun you're holding along with an image of it.
Open source
Yes, it's open source. That means you can improve it, merge it with your game, or do anything else that would be possible to do with a engine. No credit needed.
You can Download it Here:
Download
Add your comment
Last Updated (Thursday, 11 June 2009 21:12)


