-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathSolveLeaveRL.asc
55 lines (48 loc) · 1.06 KB
/
SolveLeaveRL.asc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
// new module script
Timer * delay_goedge;
void doLeaveRight(){
if(delay_goedge==null){
delay_goedge = Timer.StartRT(0.2, eOnce);
} else {
return;
}
if(player.y>265){
player.x = 16;
player.y = 220;
} else if(player.y>170 && player.y<265){
player.x = 16;
player.y = 155;
} else if(player.y>96&& player.y<170){
player.x = 16;
player.y = 92;
} else if(player.y<96){
//
//player.x = 15;
//player.y = 285;
}
}
void doLeaveLeft(){
if(delay_goedge==null){
delay_goedge = Timer.StartRT(0.2, eOnce);
} else {
return;
}
if(player.y>265){
// player.y = 10;
// player.y = 220;
} else if(player.y>170 && player.y<265){
player.x = 202;
player.y = 285;
} else if(player.y>96&& player.y<170){
player.x = 202;
player.y = 220;
} else if(player.y<96){
player.x = 202;
player.y = 155;
}
}
function repeatedly_execute_always(){
if(delay_goedge!= null && delay_goedge.EvtExpired){
delay_goedge = null;
}
}