Sonic-NKT
January 23rd, 2005, 16:05
Hi,
i just started to learn fenix and im working a bit on a Zelda like game..
i do this with help of a tutorial.
i use this code to move the charakter
if (key(_right) and not key(_up) and not key(_down))
x=x+2; angle=0;
if (graph<=2 or graph>=7) graph=2; end;
graph++; flags=0; angle=0;
end
now the problem is, that if you dont press the button anymore, the last sprite which was drawn stays on the screen and that looks sometimes a bit strange..
so i want to add a bit more code to this..
graph = 1 should be drawn after moving...
how i can do this?
i just started to learn fenix and im working a bit on a Zelda like game..
i do this with help of a tutorial.
i use this code to move the charakter
if (key(_right) and not key(_up) and not key(_down))
x=x+2; angle=0;
if (graph<=2 or graph>=7) graph=2; end;
graph++; flags=0; angle=0;
end
now the problem is, that if you dont press the button anymore, the last sprite which was drawn stays on the screen and that looks sometimes a bit strange..
so i want to add a bit more code to this..
graph = 1 should be drawn after moving...
how i can do this?