Hello,
i have a problem with the sword in my game. At first the player should hold the sword at -90 degrees (vertical) when "v" is pressed. Then the sword should go from -90 to +80, when v is released or after a amount of time (maybe half a second. But this doesn´t work quite good with turn or rotation commands, the sword moves to fast.
The move commands align the sword, that it sticks to the player.
mfg, crae
1 2 3 4 5 6 7 8 9 | public void switchImage_attack1() { if (Greenfoot.isKeyDown( "v" )) { move(- 115 ); turn(- 90 ); move( 95 ); } } |