stategraphs/SGfrog.lua
176177178179180181182
name = "fall",
tags = {"busy"},
onenter = function(inst)
inst.inlimbo = true
inst.Physics:SetDamping(0)
inst.Physics:SetMotorVel(0,-20+math.random()*10,0)
inst.AnimState:PlayAnimation("fall_idle", true)
176177178179180181
name = "fall",
tags = {"busy"},
onenter = function(inst)
inst.Physics:SetDamping(0)
inst.Physics:SetMotorVel(0,-20+math.random()*10,0)
inst.AnimState:PlayAnimation("fall_idle", true)
190191192193194195196
if pt.y <= .1 then
pt.y = 0
inst.inlimbo = false
-- TODO: 20% of the time, they should explode on impact!
189190191192193194
if pt.y <= .1 then
pt.y = 0
-- TODO: 20% of the time, they should explode on impact!