in my player.as file i have used senocular utili class to create movement using arrow up down left and right. and firebullet using space button.
how can i change this so the player moves to the A, S, D, W keys instead and fire using R
here is the current code i want to change in my player.as class
public function loop(e:Event) : void
{
if (key.isDown(Keyboard.LEFT))
x -= speed;
else if (key.isDown(Keyboard.RIGHT))
x += speed;
if (key.isDown(Keyboard.UP))
y -= speed;
else if (key.isDown(Keyboard.DOWN))
y += speed;
if (key.isDown(Keyboard.SPACE))
fireBullet();