2016-04-06 6 views
0
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 

wo obj_lamo_light enthält 3 Unter iamges und obj_Arrow_move enthält drei Teilbilder und ich möchte, dass sie Originalobjekte wieder ändern, wenn KollisionWie kann ich die Instanz stoppen, wenn die Kollision im Game Maker Studio aufhört?

Antwort

0

Im obj_lamp_light Ereignis stoppt, können Sie überprüfen, ob Ihre Kollision noch auftritt und wechsle zurück, wenn nicht.

if (collision_rectange(x, y, x + sprite_width, y + sprite_width, false, true) == noone) 
{ 
    instance_change(obj_lamp, false); 
} 
Verwandte Themen