Content-Length: 20627 | pFad | http://itch.io/post/3898617

Post by EO in Key Press - itch.io
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 😃 









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://itch.io/post/3898617

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy