k, this one stumped me, i have tryed doing this for about an hour now and can't seem to get it to work... i am making a game and i want to make it so when the cross button is pressed, it deletes a current screen:print on the screen, and replaces it with another screen:print. i have already tryed this:
if pad:cross() then
screen.flip()
screen.waitVblankStart()
screen:print(x, y, "this text here", color)
end
but that doesn't work... if i could get some help with this that would be great (i'm so very sorry for posting so many questions but this is the easiest way to get help :))
step 1: draw things to the framebuffer (like screen:print)
step 2: wait for vertical sync (waits for screen to be ready)
step 3: then flip the buffer (this step actually shows what you've drawn in step 1)
additionally, make sure "color" is actually a color.
if pad:cross() then
screen:clear() --otherwise you overdraw it
screen:print(x, y, "this text here", color) --put the text out
screen.flip() --update the screen
end
thats it
lumo
"Good artists copy, great artists steal." Pablo Picasso go2lumo.com