Trollsplatterer

Help, tutorials and examples for Game Maker

Platformer Engine
click to visit
An Engine to help you start a 2D Platformer Game.

Spiral Lords
click to visit
Lead your empire to conquer the galaxy.
Paper Flight
click to visit
3D racing game with custom paper airplanes.

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)

Area Of Effect  download now


This example shows how to create a blast radius (or Area Of Effect) to hit multiple objects in the proximity of an explosion. The example assumes that the origin of your sprite is located at the centre, so that the distance between the blast and the items can be measured as the distance between the two objects.

Ratings

General Rating
Your Rating*

Images

Firing a ball
Firing a ball This example uses circles to show the effect. The blue ball is fired into the other balls and explodes when it hits one.
Preparing to fire
Preparing to fire Before the ball is fired at the collection of yellow pillars, several of them have already been hit by previous attacks.
Explosion
Explosion When the blue ball hits a yellow ball, it explodes. Upon the explosion, all pillars in the vicinity are hit.
Multi-hit
Multi-hit After the explosion you can see the devastating effect. All nearby pillars have been hit. Those closest to the explosion have been hit hardest.




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