Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(1 edit)

i have a bit problem

x=50

p=0

e=0

function TIC()

cls()

if btn(3) then x=x+1 end

if btn(2) then x=x-1 end

spr(256, 50, 50)

end


when i run it the button didn't works :(

i use TIC 80 on mobile

im beginner,i hope somebody help me...

(+1)

I take it you want to move the sprite across the screen when you press a key?

If so, you're not using the value of x in your code - change spr(256,50,50) to spr(256, x, 50) and it should work.

ok,thank you so much 😃