I've never done this but I'd do this:
<when[ Key ]key pressed>
<reset timer>
<wait until> << <not> <key[ Key ]pressed?> >>
<set{ ChargeLevel }to( <timer> )>
<broadcast[ Attack ]>
Last edited by MoreGamesNow (2011-04-17 16:36:43)
Offline
I would do it like this:
Obviously the rate the power increases and the max power (the example is 100) can be changed as you please.
Offline
Kileymeister's script has the advantage of being able to be used by multiple sprites at once, while mine relies on a timer which is universal.
Offline