plz help
init = function()
end
update = function()
if keyboard.UP then i = i+1 end
end
draw = function()
screen.drawText(i, 0, 70, 25, "#FFF")
screen.drawSprite("sprite", 0, -20, 120, 120)
screen.drawSprite("coin", 30, 70, 35)
end code
what to do if the numbers are displayed on each other I want to just show the account
how to make only one text
You didn't put the screen.clear()
at the start of the draw function, and that's why the text is drawn over each other. So it should be:
draw = function()
screen.clear()
screen.drawText(i, 0, 70, 25, "#FFF")
screen.drawSprite("sprite", 0, -20, 120, 120)
screen.drawSprite("coin", 30, 70, 35)
end
Thx, I'm so bad:(
(I just started learning this engine today)