• 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!

Nine-slice collision doesn't work.

Sahar Cohen

Member
I tried to make a box object that has nineslice with precise collision, the object shows up fine but the collision doesn't, does anyone have any idea?
B.T.W I am using image_xscale and image_yscale to scale the object.
 

rIKmAN

Member
To quickly visualise it try using draw_rectangle with the bbox_* values and see if it aligns with the nineslice.

Make sure to draw the rectangle after drawing the sprite so that it will appear on top and not be hidden underneath.
 

Vusur

Member
Doesn't work at all or not like you expected?
The collision mask for nine-slice is/was quite fishy. I remember this thread
Maybe you have a similar problem?
 
Top