…With 2 of 0 fps animation tiles and script.
![]()
![]()
on UI_A do
uix = event.px
uiy = event.py
// 12:lr
// 34:ud
// 5:set
ishole = frame uix,uiy
if ishole==1 then
tell uix,uiy to
frame 2
end
uix -= 1
if uix>=boardlx then
tell uix,uiy to
frame 5
end
end
uix += 2
if uix<=boardrx then
tell uix,uiy to
frame 5
end
end
end
if ishole==2 then
tell uix,uiy to
frame 1
end
uix -= 1
if uix>=boardlx then
tell uix,uiy to
frame 5
end
end
uix += 2
if uix<=boardrx then
tell uix,uiy to
frame 5
end
end
end
if ishole==3 then
tell uix,uiy to
frame 4
end
uiy -= 1
if uiy>=boarduy then
tell uix,uiy to
frame 5
end
end
uiy += 2
if uiy<=boarddy then
tell uix,uiy to
frame 5
end
end
end
if ishole==4 then
tell uix,uiy to
frame 3
end
uiy -= 1
if uiy>=boarduy then
tell uix,uiy to
frame 5
end
end
uiy += 2
if uiy<=boarddy then
tell uix,uiy to
frame 5
end
end
end
end
UI_A will draw lines.
on slitherline do
blbx = boardx
blby = boardy
sltres = 5
blbcnt = frame blbx,blby
blblx = blbx
blbuy = blby
blbrx = blbx
blbdy = blby
blblx -= 1
blbuy -= 1
blbrx += 1
blbdy += 1
ishole = frame blblx,blby
if ishole==2 then
sltres += 2
end
ishole = frame blbx,blbuy
if ishole==4 then
sltres += 4
end
ishole = frame blbrx,blby
if ishole==2 then
sltres += 8
end
ishole = frame blbx,blbdy
if ishole==4 then
sltres += 1
end
tell blbx,blby to
frame sltres
end
end
slitherline will fix lines with binary-like mechanism.