Collision Event with object obj_cu:
for all obj_lamp: change the instance into object obj_lamo_light, not performing events
for all obj_arrow: change the instance into object obj_arrow_move, not performing events
其中obj_lamo_light包含3个子图像,obj_Arrow_move包含3个子图像,我想在碰撞停止时将它们更改回原始对象
答案 0 :(得分:0)
在obj_lamp_light事件中,您可以检查您的碰撞是否仍在发生,如果没有,则更改回来。
if (collision_rectange(x, y, x + sprite_width, y + sprite_width, false, true) == noone)
{
instance_change(obj_lamp, false);
}