GML Growing mask size to complement growin sprite size

Artie_Kyle

Member
What up, peeps!

I'm having a growing enemy, and while he is growing, his collision mask is still the same size, which makes it harder to hit.

I'm using physics, and using the basic image_xscale += 0.01 to increase the image size (yscale for the height), so how do I increase the mask size as well?

Thanks for your time, everyone!
 

Bart

WiseBart
If you intend to keep using the physics system for this, it might be interesting to check out the physics particle system. By defining a particle group with particles, the shape isn't rigid and you can make it grow by adding more particles to it.
The physics system uses rigid bodies, so their shape isn't supposed to change during their lifetime.
 
Last edited:
Top