well .... i haven't touched tgf for a while now but to accomplish something like that i would use a counter or alterable value + flags to determine the time inbetween button taps to allow for "double-tap: run"
something like this (note: this is not how the code would look like exactly as i haven't touched my tgf in a long whlile now but you should be able to code this in regardless)
always
alterable value a > 0
- subtract 1 from alterable value
alterable value a = 0
- flag 1: off
is flag 1 set to 'off'?
is [->] pressed? (held) (this is will be walk i guess)
- character x position = character x position + speed value (or whatever method of movement you use, it's up to you)
is [->] pressed? (not held)
- flag 1: on
- set alterable value a = 5
is flag 1 set to 'on'?
is [->] pressed? (held) (this will be run)
- character x position = character x position + speed value (or whatever method of movement you use, it's up to you)
this of course is untested but in theory should work (my theory anyways )
if this doesn't work, i'll fiddle with tgf until i get something taht works, heh
I have the character running by holding down another button, all I want is instead of that...when you tap the controler twice quick, he'd run...and take the button action out...
erhm ... yeah ... so i finally opened up tgf again and tried that out and it's some baaadd coding but i'm working on it, i'll get back to you when something works out
I got it working using a timer, but it sucks because if you are walking, and you switch direction, it sees it sometimes as tapping, and he runs...so any ideas??