View Full Version : Pixel help
Safari Al
July 5th, 2007, 03:01
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.
splodger15
July 5th, 2007, 06:55
Try this
screen:print(85,150,player.x,Color.new(255,0,0))
screen:print(85,160,player.y,Color.new(255,0,0))
-Xandu-
July 5th, 2007, 10:32
What co-ordinates are you trying to view?
Safari Al
July 6th, 2007, 20:45
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.
green=Color.new(0,255,0)
white = Color.new(255,255,255)
player = Image.load("Nick.png")
Player = { }
Player[1] = { x = 200, y = 50 }
screen:blit(Player[1].x,Player[1].y,player)
screen(colon)print(10,10,"X: "..player.x.." Y: "..player.y,green)
end
screen.waitVblankStart()
screen.flip()
end
What did i do wrong? Oh and thanks for the links splodger. They really helped me!:thumbup:
PS (colon)=:
-Xandu-
July 6th, 2007, 21:04
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
Try this ;).
Safari Al
July 6th, 2007, 21:37
tried it and it says loop in gettable
Powered by vBulletin® Version 4.2.3 Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.