K
kmce
Guest
I am trying to make a sprite of one object change to another, but it doesnt seem to be happening. Not a programmer or that familiar with GM, so wondering if this should actually work
if (!instance_exists(obj_HipHop_WG_arms_punching) && distance_to_object(obj_john_torso_walking) < 10 )
{
sprite_index=spr_HipHop_WG_arms_punching
instance_create (200,500 , obj_HipHop_WG_arms_punching)
};
I am creating the object aswel for other reasons and its working fine, just the sprite change that is not working
if (!instance_exists(obj_HipHop_WG_arms_punching) && distance_to_object(obj_john_torso_walking) < 10 )
{
sprite_index=spr_HipHop_WG_arms_punching
instance_create (200,500 , obj_HipHop_WG_arms_punching)
};
I am creating the object aswel for other reasons and its working fine, just the sprite change that is not working