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

Legacy GM Create an object on a collision point between two objects

S

sBarb

Guest
So I'm trying to make a little explosion-like animation that should fire when two objects collide, in the point of impact.

They're physics enabled and I tried to use phy_collision_points and phy_position_x / phy_position_y but without success, on impact the game throws out an error saying that phy_collision_points is not set, but then again I cannot set it as I do with normal variables it's a read-only variable...

How can I achieve this?
Thanks!
 
G

GRArthas

Guest
create an event when the 2 objects are colliding and add a code in instance_create(x,y,object);
 
Top