Log In  
Follow
RoXSaida

Hello, i'm coding a character movement but it don't work, why ? :(

Code :

function _init()
	hero = {}
	hero.x = 64
	hero.y = 64
end

function _uptade()
	if btn(0) then 
		hero.x = hero.x - 1
	end
	if btn(1) then 
		hero.x = hero.x + 1
	end
end

function _draw()
	cls()
	spr(0,hero.x,hero.y)
end

my character don't move :(

2 comments