Just cant get sprites moving via keyboard nor via gamepad.
At first i tried it like in the learning videos and then tried it like this but no way is it working at all.
I'm running Manjaro Linux.
#include "test.scene"
test_setup()
SetVirtualResolution(1024,768)
LoadImage(1,"fishGreen.png")
CreateSprite(1,1)
SetJoystickScreenPosition(1,512,380)
left = 65
up = 87
down = 83
right = 68
sx=512
sy=380
do
if GetRawKeyState(left) then SetSpriteX(1,GetSpriteX(1)-3)
if GetRawKeyState(right) then SetSpriteX(1,GetSpriteX(1)+3)
if GetRawKeyState(up) then SetSpriteY(1,GetSpriteY(1)-3)
if GetRawKeyState(down) then SetSpriteY(1,GetSpriteY(1)+3)
/*
SetSpritePosition(1,sx,sy)
sx=sx*GetJoystickX()
print(GetRawLastKey())
print(GetJoystickX())
*/
test_sync()
sync()
loop
Thanks in advance Sven