Trollsplatterer

Help, tutorials and examples for Game Maker

Paper Flight
click to visit
3D racing game with custom paper airplanes.

RK-1 Revenge of the Rats
click to visit
Use RK-1 to defeat nasty burglar insects!
Platformer Engine
click to visit
An Engine to help you start a 2D Platformer Game.

The Black Hole that Wants to Eat Me
click to visit
Stranded in space close to a black hole...
Home Search/Browse Comments Trollsplatterer You can help! Links
Terms&Conditions This website has been designed for Firefox Design by Trollsplatterer (©2017)

Shooting  download now
by Bebop


This GM8.0 example explains how to make a character fire a bullet towards the nearest enemy. It's a platform-game and the system works with GML-code.

Ratings

General Rating
Your Rating*

Images

Firing forward
Firing forward The system automatically selects the closest enemy and fires towards it.
Shooting the other way
Shooting the other way You can fire both ways, left and right. You fire in the direction you're looking at, never backwards, even if the closest enemy is behind you.




* : The rating makes use of your IP-address to remember your vote. IP addresses may change, but your vote will be kept, even though it may no longer be visible here.