I am currently trying to learn lua and am just a beginner. Is there something to display pixel coordinates on a psp? Sorry if this is a dumb question.
Printable View
I am currently trying to learn lua and am just a beginner. Is there something to display pixel coordinates on a psp? Sorry if this is a dumb question.
Try this
screen:print(85,150,player.x,Color.new(255,0,0))
screen:print(85,160,player.y,Color.new(255,0,0))
What co-ordinates are you trying to view?
Srry bout not answering, dcemu wasn't working for me for some reason. I made this. It loads and arrow image i made which points to the coordinate. It does not work for some weird reason though.
Spoiler!
What did i do wrong? Oh and thanks for the links splodger. They really helped me!:thumbup:
PS (colon)=:
Try this ;).Quote:
green=Color.new(0,255,0)
white = Color.new(255,255,255)
player = Image.load("Nick.png")
Player = { }
Player[1] = { x = 200, y = 50 }
while true do
screen:blit(Player[1].x,Player[1].y,player)
screen(colon)print(10,10,"X: "..player.x.." Y: "..player.y,green)
screen.waitVblankStart()
screen.flip()
end
tried it and it says loop in gettable