level 1
解决了,给主角挂个透明对象,如下设置即可……
Create Event:
state = 0; //活动0 失活1
Step Event:
x = global.player_x; //对象一直跟随主角
y = global.player_y;
if (window_has_focus() == 0) { //失活了
state = 1;
instance_deactivate_all(1); //除了该透明对象其他全部对象失活
}
if (state == 1 && window_has_focus() == 1) { //从失活到恢复
instance_activate_all()
io_clear()
state = 0;
}
2015年08月16日 06点08分