Trollsplatterer

Help, tutorials and examples for Game Maker

Endurance 3d
click to visit
A survival game with many weapons and enemies.

Infinite Stick War of Death V3
click to visit
The third remake of the epic, endless war God has started.
Spiral Lords
click to visit
Lead your empire to conquer the galaxy.

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 (©2018)

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.

Comments/Suggestions

By Comment
Anonymous
2018-04-05
JSgOyQfJzV WhHmzTQluU PpBAvolaov SduraCbpkr aTQizaOaNz SHXWgwRzZE EZwEYOngYN RNQkcJlBrt JkcNVvfzpB siVLidkihZ



* : 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.