• 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 Using a sprite's collision mask without it being attached to an object?

Goldoche

Member
I'm drawing a bunch of sprites without them being directly attached to an object. I keep their positions in list data structures.

I'd like to do some collision checks with them. Unfortunately they have complex shapes so I can't just use an ellipse or a rectangle. Is there a way I can use their collision masks for collision checking without them being tied to an object? It seems all the collision checking functions that use collision masks require to input an object's name as a parameter.
 

GMWolf

aka fel666
I think their is no way but to create a temporary object.
But if you keep the object around, and reuse it, the performance impact should be négligeable
 
Top