Flee

Subweapon: Flee
Increases speed for 60 steps

function fireC_OnStart(level)
if fire3Count==0 then
release()
else
fire_interval = 0
setSpeed(getSpeed(iSelf())*1.6)
playSound(1)
end
end
function fireC_OnStep()
fire_interval=fire_interval+1
setSpeed(getSpeed(iSelf())/0.4)
if fire_interval>60 then
fire3Count=fire3Count+1
release()
end
end

It seems like player speed is automatically set back to normal, unlike enemy speed where you must set it back to 0 to stop them from moving. There is a rather unnecessary speed boost in the OnStart(). It adds to the feel of a sudden speed burst by having it really high for a single step.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-Share Alike 2.5 License.