This maybe easy for you guys, but I cannot figure out how to make it so that when you push a button, the action is carried out even if the button is released.
Yes this is very messy looking, but this is what I have for a code so far. This is also a 2d-platformer so mind the vector2. What happens is that when I do hit fire1, instead of actually sliding like i intend, the character jumps to the position and sliding variable only goes down by one.
Thanks in advance.
asked Mar 13 '11 at 11:40 PM
Input.GetButton instead of Input.GetButtonDown
answered Mar 14 '11 at 02:34 AM