Answers for "how to make controls for a game"

1

how to make controls for a game

if (keyDown(up)){
sprite.y = sprite.y-1
}
if (keyDown(down)){
sprite.y = sprite.y+1
}
if (keyDown(right)){
sprite.y = sprite.x+1
}
if (keyDown(lefr)){
sprite.y = sprite.x-1
}
Posted by: Guest on September-14-2020
1

how to make controls for a game

if (keyDown(up))
Posted by: Guest on September-14-2020

Browse Popular Code Answers by Language