You see I have tried the counter and your specifications made it a lot easier for me. The issue that I bump into now is that I can dash right when I push right twice. So I can dash now but I cannot move normally to the right.
I tried the timing technique but I struggled and stuck to a counter. Is that good or bad?
So I’ll get cracking on that and keep you posted. I’m still learning the logical programming stuff so thank you for bearing with me.
I will work on
I really want to add an image for you to see but here is the essential code:
rcounter = 0;
{
/*///////////////////// NORMAL MOVEMENT */
if (Input.check("right"))
{
x += movement * FP.elapsed;
rcounter == 0;
}
if (Input.check("left"))
{
x -= movement * FP.elapsed;
rcounter == 0;
}
if (Input.check("up"))
{
y -= movement * FP.elapsed;
rcounter == 0;
}
if (Input.check("down"))
{
y += movement * FP.elapsed;
rcounter == 0;
}
/*//////////////////// NORMAL MOVEMENT */
/*///////////////////DASH CODE*/
}
I set the movement buttons to move normally with addition to setting rcounter back to zero so that, what I thought, would allow me to move normally to the right but it still counts a check as a press.(Which I understand because technically a check looks for pressed every frame)
sigh but I will forge on. I feel like I’m getting close!!