Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
function octagon takes real StartX, real StartY, real Length returns nothing
local integer i = 0
loop
exitwhen i > 7
set Location[i] = Location(StartX + Length * Cos((360/8)*i),StartY + Length * Sin((360/8)*i))
set i = i + 1
endloop
endfunction
For each (Integer A) from 0 to 7 do Multiple Actions

Actions


Custom script: set udg_Location[bj_forLoopIndexA] = Location(udg_StartX + udg_Length * Cos(((360/8)*bj_forLoopIndexA)*bj_DEGTORAD),udg_StartY + udg_Length * Sin(((360/8)*bj_forLoopIndexA)*bj_DEGTORAD))
Custom script: set udg_NeedlesSummonLocation[bj_forLoopIndexA] = Location(udg_StartX + udg_Length * Cos(((360/8)*bj_forLoopIndexA)*bj_DEGTORAD),udg_StartY + udg_Length * Sin(((360/8)*bj_forLoopIndexA)*bj_DEGTORAD))