Discord
Login
Community
DARK THEME

movement

im creating a game with an player in the middle of the screen how i can add the map i crated and how i can move it in any directions?

if you initialized it as a object you can put this in the update function

if keyboard.UP then player.y += player.speed end if keyboard.DOWN then player.y -= player.speed end if keyboard.RIGHT then player.x += player.speed end if keyboard.LEFT then player.x -= player.speed end

Post a reply

Progress

Status

Preview
Cancel
Post
Validate your e-mail address to participate in the community