Discord
Login
Community
DARK THEME

code isnt working in lua

init = function() x = 0 y = 0 end

update = function() if keyboard.LEFT == 1 then x = x-1 end if keyboard.RIGHT == 1 then x = x+1 end if keyboard.UP == 1 then y = y+1 end if keyboard.DOWN == 1 then y = y-1 end end

draw = function() screen:clear() screen:drawSprite("sprite",x,y,100,100) end

wont draw the sprite? plz help

nevermind it was just being weird for a bit i had to reload

Post a reply

Progress

Status

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