• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

GameMaker Nearest Collision Point (Lasers, Bullets, Etc)

J

Jordan Robinson

Guest
Just wanted to make a wee post to build a bit more interest in a little asset I made for the GameMaker Marketplace. The main selling point of this asset is that it uses an algorithm I thought of to reduce the number of collision checks per step.

It is designed to work sort of like the built in collision_line(...) functions, however it returns the coordinate (as a 1d array) of the first collision with a specified object. It allows for precise collision checks and also allows you to determine how accurate the check should be from 1 pixel accuracy less.

Be sure to check it out. Here is a video I put together showcasing one of the many possible uses:
 
Top