- Switches implemented
This commit is contained in:
@@ -10,7 +10,7 @@ switches={
|
|||||||
[76]={[19]={77, 50,38,26},
|
[76]={[19]={77, 50,38,26},
|
||||||
[22]={57, 53,41}},
|
[22]={57, 53,41}},
|
||||||
[80]={[18]={36, 56,44}},
|
[80]={[18]={36, 56,44}},
|
||||||
[39]={[27]={27, 62,63}}
|
[39]={[27]={39, 62,63}}
|
||||||
}
|
}
|
||||||
--switches[11]={[21]={11, 57,45}}
|
--switches[11]={[21]={11, 57,45}}
|
||||||
--switches[11][21]={11, 57,45}
|
--switches[11][21]={11, 57,45}
|
||||||
@@ -32,7 +32,7 @@ function switches.update()
|
|||||||
|
|
||||||
switches.wait=switches.wait+1
|
switches.wait=switches.wait+1
|
||||||
|
|
||||||
if switches.wait==6 then
|
if switches.wait>=6 then
|
||||||
switches.wait=0
|
switches.wait=0
|
||||||
mapa_set_tile_by_index(switches.current_list[1]-1,switches.current_list[switches.current_index]+1,256)
|
mapa_set_tile_by_index(switches.current_list[1]-1,switches.current_list[switches.current_index]+1,256)
|
||||||
switches.current_index=switches.current_index+1
|
switches.current_index=switches.current_index+1
|
||||||
|
|||||||
Reference in New Issue
Block a user