Results 1 to 6 of 6

Thread: Pixel help

                  
   
  1. #1
    DCEmu Coder Safari Al's Avatar
    Join Date
    Mar 2007
    Location
    http://homebrewheaven.net
    Posts
    863
    Rep Power
    0

    Question Pixel help

    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

  2. #2
    DCEmu Coder splodger15's Avatar
    Join Date
    Jun 2006
    Location
    London
    Age
    33
    Posts
    4,123
    Rep Power
    92

    Default

    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

  3. #3
    PSP Coder -Xandu-'s Avatar
    Join Date
    Jan 2007
    Posts
    1,036
    Rep Power
    79

    Default

    What co-ordinates are you trying to view?

  4. #4
    DCEmu Coder Safari Al's Avatar
    Join Date
    Mar 2007
    Location
    http://homebrewheaven.net
    Posts
    863
    Rep Power
    0

    Default

    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

  5. #5
    PSP Coder -Xandu-'s Avatar
    Join Date
    Jan 2007
    Posts
    1,036
    Rep Power
    79

    Default

    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 .

  6. #6
    DCEmu Coder Safari Al's Avatar
    Join Date
    Mar 2007
    Location
    http://homebrewheaven.net
    Posts
    863
    Rep Power
    0

    Default

    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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •