ryanrybot wrote:I just worked on an identical mechanic and didn't find an acceptable solution yet, so I just left it to have a normal attack when the button is held down for now.
You could do it by having the normal attack activate on button release instead of button pressed, but it doesn't feel quite right.
Another thing to try is setting a timer on button down, so if the button isn't released by 0.1 seconds (or some other small amount of time) start charge, else do a normal attack. That might work, but I have yet to try it.
LittleStain wrote:Like I said before:
add the timer behaviour
on button pushed start timer for 0.1 seconds
on button released stop timer
button on timer - special attack
LittleStain wrote:The timer is just a countdown.. on timer means that the countdown is done..
There is no need to store the time..
Use on timer as the trigger event to start your special attack..
stopping the timer on button released makes sure the on timer event isn't triggered if the button is released before the timer ends..
mikewalton206 wrote:So are you trying to have it so when you do a normal attack a few seconds later a special attack comes out?