Hold to charge
Example...
(A) jump
(B) shoot or hold to charge then shoot super blast
How do I make a hold to charge attribute? One simple example then I can work out the rest.
Thank you
(A) jump
(B) shoot or hold to charge then shoot super blast
How do I make a hold to charge attribute? One simple example then I can work out the rest.
Thank you

Comments
when actor is pressed + self.energypoints<200
timer every 0.2
change attribute self.energypoint to self.energypoints+1
If you want a health bar to 'fill up' you could make the 'energypoints' a scene or game attribute and have an actor reference this with a constrain and expand with a constrain rule and have another to move it to compensate across the scene so it grows only in one direction.
something like
constrain self.size.width to game.energypoints
constrain self.position.x to 10+(self.size.width/2)
hope that helps
kipper