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