Results 1 to 3 of 3

Thread: Lua: need help.

  
  1. #1
    Knud is offline -Hacks Newbie
    Join Date
    Aug 2006
    Posts
    3
    Rep Power
    0

    Default

    Hi.

    Im new in here and i want help. Im not that good in english so please keep the speach in school level :).

    Heres my problem:

    I am making a Hello World.
    I have made a text saying "Hello World".

    But i want to make one more line of text down in the right conor. I want to have a text saying "Made by Mads"(My name is Mads).

    How can i show 2 text at same time?

    Currently my script is like this:



    System.usbDiskModeActivate()

    blue = Color.new(0, 0, 255)

    screen:clear()

    screen:print(150, 72, "Hello World!", blue)

    screen.flip()

    while true do
    screen.waitVblankStart()

    end


    _____________________________________________________________________

    Can anybody please help me. I know this is a nooby question but i cant find anything about it in the tutorials.

    Hope you guys will fix my problem.

    -Knud.


  2. #2
    LordCthulu is offline Senior Member -Hacks Enthusiast
    Join Date
    Mar 2005
    Posts
    578
    Rep Power
    15

    Default

    Code:
    System.usbDiskModeActivate()
    
    blue = Color.new(0, 0, 255)
    
    screen:clear()
    
    screen:print(150, 72, "Hello World!", blue)
    screen:print(262, 290, "Se7eN is a /\/ / /\/ ,_/ /-\", red)
    
    screen.flip()
    
    while true do
    screen.waitVblankStart()
    
    end
    Gonna have to change the numbers on the 2nd print(), but other than that, it'll show 2 lines of text.



    Edit~ I'm assuming you know the dimensions of the PSP and the direction of x/y on the screen ?
    Oldest psp-hacks member ever.

  3. #3
    Knud is offline -Hacks Newbie
    Join Date
    Aug 2006
    Posts
    3
    Rep Power
    0

    Default

    Thx for the answer. But i found out before i readed your answer. I am a bit longer now. I have actually made my own game. Well no enemies or something yet. Only a moving char.

    Yea i i know the X,Y of en PSP. 480X272.

Posting Permissions

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