hey guys,
what im trying to do is create a moving allow/launcher for a homebrew game.
i loaded the image, then i want it to move to the left when you press up.
so this is the code i used
Code:
--[[
launcher loaded in default position)
]]
screen:blit(20,98,launcher7)
screen:flip()
pad = Controls.read()
if pad:cross() then break end
end
if pad:up() then
launcher7.clear()
screen:blit(20,98,launcher6)
screen:flip()
the problem i have is when you press up - the original launcher/arrow doesnt clear - so you cant see the second launcher (which is slightly aimed more towards the left)
can anyone help me with this
or
is there an easier way of moving the laucher/arrow
thanks for all your help
RL
{Edit}
so now i got it to do something - by moving the "end" after
if pad:cross() then break end
but i get the error