Try this
screenrint(85,150,player.x,Color.new(255,0,0))
screenrint(85,160,player.y,Color.new(255,0,0))
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.
Come Visit Homebrew Heaven, Where you'll find the latest gaming news and downloads!
View My Coding Blog
The Return of The Lounge!
Mario Gold Rush
Current C++ Project: To be Announced soon on Homebrew Heaven
Currently Coding in: C++ for the PSP
Try this
screenrint(85,150,player.x,Color.new(255,0,0))
screenrint(85,160,player.y,Color.new(255,0,0))
PSN ID: splodger15
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)=:
Come Visit Homebrew Heaven, Where you'll find the latest gaming news and downloads!
View My Coding Blog
The Return of The Lounge!
Mario Gold Rush
Current C++ Project: To be Announced soon on Homebrew Heaven
Currently Coding in: C++ for the PSP
Try thisgreen=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
Come Visit Homebrew Heaven, Where you'll find the latest gaming news and downloads!
View My Coding Blog
The Return of The Lounge!
Mario Gold Rush
Current C++ Project: To be Announced soon on Homebrew Heaven
Currently Coding in: C++ for the PSP
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks