starttartpeed = my.variables["speed"]
function onCreate()
end
function onUpdate(dt)
end
function onMessage(message, triggeringActor)
print("Received rule message: " .. message)
if message == "start" then
braindead()
end
end
function moveRight()
if my.variables["isAlive"] and my.variables["enableControl"] == 1 then
print("sir the togpis is going moveRight")
my.dynamicMotion.vx = speed
end
function braindead()
local action_rng = math.random(1,3)
moveRight_var = castle.repeatAtInterval(0.0167, moveRight)
jump_var = castle.repeatAtInterval(math.gauss(0.24,0.1), Jump)
end