Seite 73 von 342 ErsteErste ... 23 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 123 173 ... LetzteLetzte
Zeige Ergebnis 2.161 bis 2.190 von 10238

Lua Programming Help Thread

This is a discussion on Lua Programming Help Thread within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; Zitat von HaxxBlaster I am just asking if there is a "return" command that really works, i know everything else. ...

  
  1. #2161
    Rock Star
    Points: 70.899, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Overall activity: 0%

    Registriert seit
    Aug 2005
    Ort
    CT| FW: 4.01 M33-2
    Beiträge
    11.844
    Points
    70.899
    Level
    100
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von HaxxBlaster
    I am just asking if there is a "return" command that really works, i know everything else.

    I am asking for commands, not code.
    Well you could have made that clear




  2. #2162
    QJ Gamer Green
    Points: 6.520, Level: 52
    Level completed: 85%, Points required for next Level: 30
    Overall activity: 0%

    Registriert seit
    Nov 2005
    Ort
    Sweden
    Beiträge
    460
    Points
    6.520
    Level
    52
    Downloads
    0
    Uploads
    0

    Standard

    I pretty much did, because there is no other way to do the "skipp" stuff that i want.

    Dosen't any one know how the "return" commands works?
    Geändert von HaxxBlaster (05-08-2006 um 12:37 PM Uhr)
    [CENTER]Some of my homebrew Applications/Games:
    [URL=http://forums.qj.net/showthread.php?t=47294&page=1&pp=10]Planet Fighter[/URL] | [URL=http://forums.qj.net/showthread.php?p=641672#post641672]Graphic Creator (V2.0)[/URL] | [URL=http://forums.qj.net/showthread.php?p=512717]Fire Pong[/URL] | [B][URL="http://forums.qj.net/f-psp-development-forum-11/t-release-brushes-v20-99207.html#post1430891"][COLOR="Red"][SIZE="3"]Brushes v2.0[/COLOR][/SIZE][/B][/URL] [URL="http://forums.qj.net/f-psp-development-forum-11/t-release-brushes-v20-99207.html"][B][SIZE="2"][COLOR="Black"]Released![/COLOR][/SIZE][/B][/URL]
    [URL="http://haxxblaster.2u.se/"][COLOR="black"][FONT="Arial Black"]www.HaxxBlaster.com[/FONT][/COLOR][/URL]

    [URL="http://forums.qj.net/f-psp-development-forum-11/t-release-brushes-v20-99207.html"][IMG]http://img19.imageshack.us/img19/1346/brushesbannerqz3.png[/IMG][/URL][/CENTER]

  3. #2163
    QJ Gamer Green
    Points: 6.520, Level: 52
    Level completed: 85%, Points required for next Level: 30
    Overall activity: 0%

    Registriert seit
    Nov 2005
    Ort
    Sweden
    Beiträge
    460
    Points
    6.520
    Level
    52
    Downloads
    0
    Uploads
    0

    Standard

    I got this "Loop In Gettable" problem as well, and i can't find anything thats wrong with the script.
    I have tryed "Do wile true" and it dosen't work.

    I also hav etryed to take away parts to see if it work, but nothing fhcking work!

    Code:
    ---- FILETYPE CHOOSER
    FTime:start()
    
    if pad:l() and filetype == ".png" and FTime:timer() >= 400 then
    FTime:reset()
    filetype = ".jpg"
    screen.waitVblankStart(ControlWait)
    end
    
    if pad:l() and filetype == ".jpg" and FTime:timer() >= 400 then
    FTime:reset()
    filetype = ".png"
    screen.waitVblankStart(ControlWait)
    end
    
    ---- PAD:R() SHOW LAST SAVE
    
    if pad:r() and ShowLastSave == false and FTime:timer() >= 500 then
    while true do
    ShowLastSave = true
    FTime:reset()
    end
    end
    
    if pad:r() and ShowLastSave == true and FTime:timer() >= 500 then
    ShowLastSave = false
    FTime:reset()
    end

    Yes, same error with both button hits.
    Geändert von HaxxBlaster (05-08-2006 um 01:15 PM Uhr)
    [CENTER]Some of my homebrew Applications/Games:
    [URL=http://forums.qj.net/showthread.php?t=47294&page=1&pp=10]Planet Fighter[/URL] | [URL=http://forums.qj.net/showthread.php?p=641672#post641672]Graphic Creator (V2.0)[/URL] | [URL=http://forums.qj.net/showthread.php?p=512717]Fire Pong[/URL] | [B][URL="http://forums.qj.net/f-psp-development-forum-11/t-release-brushes-v20-99207.html#post1430891"][COLOR="Red"][SIZE="3"]Brushes v2.0[/COLOR][/SIZE][/B][/URL] [URL="http://forums.qj.net/f-psp-development-forum-11/t-release-brushes-v20-99207.html"][B][SIZE="2"][COLOR="Black"]Released![/COLOR][/SIZE][/B][/URL]
    [URL="http://haxxblaster.2u.se/"][COLOR="black"][FONT="Arial Black"]www.HaxxBlaster.com[/FONT][/COLOR][/URL]

    [URL="http://forums.qj.net/f-psp-development-forum-11/t-release-brushes-v20-99207.html"][IMG]http://img19.imageshack.us/img19/1346/brushesbannerqz3.png[/IMG][/URL][/CENTER]

  4. #2164
    Points: 3.974, Level: 40
    Level completed: 12%, Points required for next Level: 176
    Overall activity: 0%

    Registriert seit
    May 2006
    Beiträge
    2
    Points
    3.974
    Level
    40
    Downloads
    0
    Uploads
    0

    Standard

    here is the code thats make 2 buttons to one fuction

    if pad:cross() and
    square() then
    break
    end
    [I]end[I/]

  5. #2165
    QJ Gamer Green
    Points: 6.520, Level: 52
    Level completed: 85%, Points required for next Level: 30
    Overall activity: 0%

    Registriert seit
    Nov 2005
    Ort
    Sweden
    Beiträge
    460
    Points
    6.520
    Level
    52
    Downloads
    0
    Uploads
    0

    Standard

    Hehe, yes i know. But read my code before posting.
    [CENTER]Some of my homebrew Applications/Games:
    [URL=http://forums.qj.net/showthread.php?t=47294&page=1&pp=10]Planet Fighter[/URL] | [URL=http://forums.qj.net/showthread.php?p=641672#post641672]Graphic Creator (V2.0)[/URL] | [URL=http://forums.qj.net/showthread.php?p=512717]Fire Pong[/URL] | [B][URL="http://forums.qj.net/f-psp-development-forum-11/t-release-brushes-v20-99207.html#post1430891"][COLOR="Red"][SIZE="3"]Brushes v2.0[/COLOR][/SIZE][/B][/URL] [URL="http://forums.qj.net/f-psp-development-forum-11/t-release-brushes-v20-99207.html"][B][SIZE="2"][COLOR="Black"]Released![/COLOR][/SIZE][/B][/URL]
    [URL="http://haxxblaster.2u.se/"][COLOR="black"][FONT="Arial Black"]www.HaxxBlaster.com[/FONT][/COLOR][/URL]

    [URL="http://forums.qj.net/f-psp-development-forum-11/t-release-brushes-v20-99207.html"][IMG]http://img19.imageshack.us/img19/1346/brushesbannerqz3.png[/IMG][/URL][/CENTER]

  6. #2166
    QJ Gamer Silver
    Points: 9.678, Level: 66
    Level completed: 7%, Points required for next Level: 372
    Overall activity: 0%

    Registriert seit
    Jun 2005
    Ort
    The Migrant Fleet
    Beiträge
    908
    Points
    9.678
    Level
    66
    Downloads
    0
    Uploads
    0

    Standard

    not really a lua question.. but how do you make an image transparent.. and can you do it in MS paint?

  7. #2167
    Developer
    Points: 14.378, Level: 77
    Level completed: 82%, Points required for next Level: 72
    Overall activity: 0%

    Registriert seit
    Oct 2005
    Ort
    Boston, MA
    Beiträge
    1.389
    Points
    14.378
    Level
    77
    Downloads
    0
    Uploads
    0

    Standard

    Hey TO, search in google for "Lumo PSP" i think he has a sidescrolling example code.

    Zitat Zitat von montrob
    not really a lua question.. but how do you make an image transparent.. and can you do it in MS paint?
    No, use something like Photoshop, or the Gimp.
    When u rub something out in these programs the BG shows(grey and white squares), that shows that it is transparent.

  8. #2168
    Rock Star
    Points: 70.899, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Overall activity: 0%

    Registriert seit
    Aug 2005
    Ort
    CT| FW: 4.01 M33-2
    Beiträge
    11.844
    Points
    70.899
    Level
    100
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von Vaza
    Hey TO, search in google for "Lumo PSP" i think he has a sidescrolling example code.



    No, use something like Photoshop, or the Gimp.
    When u rub something out in these programs the BG shows(grey and white squares), that shows that it is transparent.
    Alright thanks a lot


  9. #2169
    QJ Gamer Green
    Points: 5.559, Level: 48
    Level completed: 5%, Points required for next Level: 191
    Overall activity: 0%

    Registriert seit
    Jan 2006
    Beiträge
    506
    Points
    5.559
    Level
    48
    Downloads
    0
    Uploads
    0

    Standard

    TO, you can also use the "music" example in the "Applications" folder in LUA-player itself. It has a scrolling background. Also I use a very simple way of scrolling, well i think so anyway, but im not sure if thats the same. It'll probably come down to the same.
    LUA manual:
    [url]http://www.lua.org/manual/5.0/manual.html[/url]

    LUA Wiki:
    [url]http://wiki.ps2dev.org/psp:lua_player[/url]

  10. #2170
    QJ Gamer Silver
    Points: 11.326, Level: 70
    Level completed: 19%, Points required for next Level: 324
    Overall activity: 0%

    Registriert seit
    Jan 2006
    Beiträge
    871
    Points
    11.326
    Level
    70
    Downloads
    0
    Uploads
    0

    Standard

    I have a little Problem:
    Money = 300
    Bet = 0

    Code:
    if pad:right() and oldpad:right() ~= pad:right() then
    Bet = Bet + 10
    end
    
    if pad:left() and oldpad:left() ~= pad:left() then
    Bet = Bet - 10
    end
    
    if Bet < 0 then
    Bet = 0
    end
    
    if Bet > Money then
    Bet = Money
    end
    Code:
    function pointsCalculate()
    if Points == Dealerpoints then
    screen:blit(0,0,lose) Money =- Bet
    
    elseif Points > Dealerpoints then
    screen:blit(0,0,win) Money =+ Bet
    
    elseif Points == 11 and Dealerpoints < Loser  then
    screen:blit(0,0,win) Money =+ Bet
    
    elseif Points == Winner and Dealerpoints < Winner then
    screen:blit(0,0,win) Money =+ Bet
    
    elseif Dealerpoints == 11 then
    screen:blit(0,0,lose) Money =- Bet
    
    elseif Dealerpoints == Winner and Points < Winner then
    screen:blit(0,0,lose) Money =- Bet
    
    elseif Dealerpoints > Points then
    screen:blit(0,0,lose) Money =- Bet
    
    end
    end
    when i lose the money cause down up to zero how can i do so that it goes down only onece.Same thing when i win but it goes up.

  11. #2171
    words are stones in my <3
    Points: 35.274, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Overall activity: 0%

    Registriert seit
    Jul 2005
    Ort
    Spokane
    Beiträge
    5.008
    Points
    35.274
    Level
    100
    My Mood
    Lonely
    Downloads
    1
    Uploads
    0

    Standard

    Umm... your grammar i cannot understand very well, but you an always use a bool:
    Code:
    yourBOOLnameHERE = false
    while true do
    if Dealerpoints > Points then
    screen:blit(0,0,lose) Money =- Bet
    yourBOOLnameHERE=true
    end
    if yourBOOLnameHERE==true then
         Money-=1
         screen.waitVblankStart(60)
    end
    This will steadilydecrease your Money integer by 1 every second as long as the Dealer has more points then you. Hope this helps.

    ...at what speed must I live.. to be able to see you again?...

    Projects

    You can support my Open World 3D RPG for PSP by voting for it here


  12. #2172
    &lt;img src=&quot;images/smilies/psp.gif&quot; border=&quot;0&quot; alt=&quot;&quot; title=&quot;&quot; cl***=&quot;inlineimg&quot; /&gt; &lt;img src=&quot;images/smilies/Punk.gif&quot; border=&quot;0&quot; alt=&quot;&quot; title=&quot;&quot; cl***=&
    Points: 11.105, Level: 69
    Level completed: 64%, Points required for next Level: 145
    Overall activity: 0%

    Registriert seit
    Jun 2005
    Ort
    Canada
    Beiträge
    1.944
    Points
    11.105
    Level
    69
    Downloads
    0
    Uploads
    0

    Standard

    how would you read the second(or 3rd or 4th or whatever) line in another txt file
    i want each line to be a seperate table
    ie
    line 1 -> t = {}
    line 2 -> z = {}
    line 3 -> g = {}
    and so on

  13. #2173
    QJ Gamer Silver
    Points: 9.678, Level: 66
    Level completed: 7%, Points required for next Level: 372
    Overall activity: 0%

    Registriert seit
    Jun 2005
    Ort
    The Migrant Fleet
    Beiträge
    908
    Points
    9.678
    Level
    66
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von Sousanator
    how would you read the second(or 3rd or 4th or whatever) line in another txt file
    i want each line to be a seperate table
    ie
    line 1 -> t = {}
    line 2 -> z = {}
    line 3 -> g = {}
    and so on
    Do this, because everytime you read the same file, it reads the next line down.. i think.

    I dont know if this works.. as i havent tested it yet.
    Code:
    file = io.open("yourfile.txt", "r")
    linea = file:read()
    lineb = file:read()
    linec = file:read()
    file:close()
    line = {}
    line[1] = {"linea"}
    line[2] = {"lineb"}
    line[3] = {"linec"}
    Ill edit this with more on how to do this and more ways after i get back from school.

  14. #2174
    QJ Gamer Green
    Points: 6.520, Level: 52
    Level completed: 85%, Points required for next Level: 30
    Overall activity: 0%

    Registriert seit
    Nov 2005
    Ort
    Sweden
    Beiträge
    460
    Points
    6.520
    Level
    52
    Downloads
    0
    Uploads
    0

    Standard

    I got the "Loop in Gettable" error working, but i still need serious help with how the use the "return" command.
    I would like to have it like "elseif return false" so it will skipp to load the image or any other file.

    Please help me out, this is the last piece to complete my work!
    [CENTER]Some of my homebrew Applications/Games:
    [URL=http://forums.qj.net/showthread.php?t=47294&page=1&pp=10]Planet Fighter[/URL] | [URL=http://forums.qj.net/showthread.php?p=641672#post641672]Graphic Creator (V2.0)[/URL] | [URL=http://forums.qj.net/showthread.php?p=512717]Fire Pong[/URL] | [B][URL="http://forums.qj.net/f-psp-development-forum-11/t-release-brushes-v20-99207.html#post1430891"][COLOR="Red"][SIZE="3"]Brushes v2.0[/COLOR][/SIZE][/B][/URL] [URL="http://forums.qj.net/f-psp-development-forum-11/t-release-brushes-v20-99207.html"][B][SIZE="2"][COLOR="Black"]Released![/COLOR][/SIZE][/B][/URL]
    [URL="http://haxxblaster.2u.se/"][COLOR="black"][FONT="Arial Black"]www.HaxxBlaster.com[/FONT][/COLOR][/URL]

    [URL="http://forums.qj.net/f-psp-development-forum-11/t-release-brushes-v20-99207.html"][IMG]http://img19.imageshack.us/img19/1346/brushesbannerqz3.png[/IMG][/URL][/CENTER]

  15. #2175
    is not posting very often
    Points: 33.152, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Overall activity: 99,6%

    Registriert seit
    Feb 2006
    Ort
    omnipresent
    Beiträge
    5.162
    Points
    33.152
    Level
    100
    Downloads
    0
    Uploads
    0

    Standard

    montrob, I think that will just read the top line again every time, however, i'm not certain, I will also need to know this for LuaMainframe, I suppose it will be the shell with no cursor lol!
    What did we think the world would look like in 2015?

    Zitat Zitat von Abe
    Either way, if you don't know, don't guess. Stick to answering questions about stuff you're qualified to answer, like Pokemon questions or something along those lines.
    http://forums.qj.net/501501-post26.html

  16. #2176
    QJ Gamer Green
    Points: 5.559, Level: 48
    Level completed: 5%, Points required for next Level: 191
    Overall activity: 0%

    Registriert seit
    Jan 2006
    Beiträge
    506
    Points
    5.559
    Level
    48
    Downloads
    0
    Uploads
    0

    Standard

    @Sousanator, Montrob and everybody.

    io.lines ([filename])
    Opens the given file name in read mode and returns an iterator function that, each time it is called, returns a new line from the file. Therefore, the construction

    for line in io.lines(filename) do ... end

    will iterate over all lines of the file. When the iterator function detects the end of file, it returns nil (to finish the loop) and automatically closes the file.
    The call io.lines() (without a file name) is equivalent to io.input():lines(), that is, it iterates over the lines of the default input file.
    this is from http://www.lua.org/manual/5.0/manual.html

    Damn i cant believe how often i have given this link and that of http://wiki.ps2dev.org/psp:lua_player

    Maybe ill just put them in my sig
    Geändert von Altair (05-09-2006 um 10:20 AM Uhr)
    LUA manual:
    [url]http://www.lua.org/manual/5.0/manual.html[/url]

    LUA Wiki:
    [url]http://wiki.ps2dev.org/psp:lua_player[/url]

  17. #2177
    Developer
    Points: 7.499, Level: 57
    Level completed: 75%, Points required for next Level: 51
    Overall activity: 0%

    Registriert seit
    Mar 2006
    Ort
    Guadalajara
    Beiträge
    958
    Points
    7.499
    Level
    57
    Downloads
    0
    Uploads
    0

    Standard

    Hey Guys How Can I Use The Irda Features In The Lua??

    Current projects:
    • pspshootoutsv0.4
    • PSPIRATESv6 :D
    • Kindom Hearths: Sora´s Adventure V0.2
    • PSPirates Alarm Clock v0.3
    • Changos!: fall of the army-ITS ALIVE AND WORKING (coming soon)

    PSPMEX DevTeam.

  18. #2178
    &lt;img src=&quot;images/smilies/psp.gif&quot; border=&quot;0&quot; alt=&quot;&quot; title=&quot;&quot; cl***=&quot;inlineimg&quot; /&gt; &lt;img src=&quot;images/smilies/Punk.gif&quot; border=&quot;0&quot; alt=&quot;&quot; title=&quot;&quot; cl***=&
    Points: 11.105, Level: 69
    Level completed: 64%, Points required for next Level: 145
    Overall activity: 0%

    Registriert seit
    Jun 2005
    Ort
    Canada
    Beiträge
    1.944
    Points
    11.105
    Level
    69
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von Altair
    @Sousanator, Montrob and everybody.
    this is from http://www.lua.org/manual/5.0/manual.html
    Damn i cant believe how often i have given this link and that of http://wiki.ps2dev.org/psp:lua_player

    Maybe ill just put them in my sig
    so io.lines reads all the lines right??
    but i still dont understand how to do get each line as a new varible

  19. #2179
    QJ Gamer Silver
    Points: 9.678, Level: 66
    Level completed: 7%, Points required for next Level: 372
    Overall activity: 0%

    Registriert seit
    Jun 2005
    Ort
    The Migrant Fleet
    Beiträge
    908
    Points
    9.678
    Level
    66
    Downloads
    0
    Uploads
    0

    Standard

    Ok i need help on tilesets.. For my game AlphaAttack.. I am going to need buildings. I am trying to blit buildings with just one tile.. but going over and over again to form a pretty big structure. Is there anyway i can do this besides just blitting the same image with a diff. X and Y value everytime.

  20. #2180
    QJ Gamer Green
    Points: 13.013, Level: 74
    Level completed: 41%, Points required for next Level: 237
    Overall activity: 0%

    Registriert seit
    Apr 2006
    Beiträge
    0
    Points
    13.013
    Level
    74
    Downloads
    0
    Uploads
    0

    Standard

    I might sound like a n00b saying this, but how do you write lua code???

  21. #2181
    Think, Do, Gloat.
    Points: 12.687, Level: 73
    Level completed: 60%, Points required for next Level: 163
    Overall activity: 0%

    Registriert seit
    Nov 2005
    Ort
    England, Norwich
    Beiträge
    1.422
    Points
    12.687
    Level
    73
    Downloads
    0
    Uploads
    0

    Standard

    Look at past examples of programs, go to the tutorials which psp millionaire wrote. Evil mana i think they're called.
    You write it in a text program like notepad, or you can use other programs which give you a bit more help like notepad++ .
    That should get you started.

  22. #2182
    QJ Gamer Green
    Points: 5.559, Level: 48
    Level completed: 5%, Points required for next Level: 191
    Overall activity: 0%

    Registriert seit
    Jan 2006
    Beiträge
    506
    Points
    5.559
    Level
    48
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von Sousanator
    so io.lines reads all the lines right??
    but i still dont understand how to do get each line as a new varible
    No. If you read it better, it says that everytime you use io.lines it reads the next line. Thats why they use a for loop in the example to read all the lines one at a time. That s exactly what you want.

    So you could do this:
    Code:
    n=1
    for lines in io.lines(filename) do
    line[n]=lines
    n=n+1
    end
    LUA manual:
    [url]http://www.lua.org/manual/5.0/manual.html[/url]

    LUA Wiki:
    [url]http://wiki.ps2dev.org/psp:lua_player[/url]

  23. #2183
    QJ Gamer Green
    Points: 13.310, Level: 75
    Level completed: 15%, Points required for next Level: 340
    Overall activity: 0%

    Registriert seit
    Dec 2005
    Ort
    Here
    Beiträge
    2.715
    Points
    13.310
    Level
    75
    Downloads
    0
    Uploads
    0

    Standard

    Is there a Lua-specialized-notepad app? Like the TTLDE in Lua OS?

    Edit - I found one, - http://www.luaedit.net/ -, but I'm still looking for one that looks/works more like TTLDE.
    Geändert von EminentJonFrost (05-10-2006 um 09:17 AM Uhr)
    [CENTER][IMG]http://img148.imageshack.us/img148/6985/siglw8.jpg[/IMG][/CENTER]

  24. #2184
    QJ Gamer Green
    Points: 5.559, Level: 48
    Level completed: 5%, Points required for next Level: 191
    Overall activity: 0%

    Registriert seit
    Jan 2006
    Beiträge
    506
    Points
    5.559
    Level
    48
    Downloads
    0
    Uploads
    0

    Standard

    I use ConTEXT its also free. You can download all sorts of context highlighters also LUA.
    LUA manual:
    [url]http://www.lua.org/manual/5.0/manual.html[/url]

    LUA Wiki:
    [url]http://wiki.ps2dev.org/psp:lua_player[/url]

  25. #2185
    QJ Gamer Bronze
    Points: 5.924, Level: 49
    Level completed: 87%, Points required for next Level: 26
    Overall activity: 0%

    Registriert seit
    Feb 2006
    Ort
    Earth, UK
    Beiträge
    457
    Points
    5.924
    Level
    49
    Downloads
    0
    Uploads
    0

    Standard

    hi, can anyone tell me the commands for the following;
    to pause the game
    to exit the game to luaplayer (on the psp)
    Pm me the anwser or reply here thanks
    <<Put A message Here>>
    <<Just made another rubbish website visit it here.>>

  26. #2186
    QJ Gamer Green
    Points: 13.310, Level: 75
    Level completed: 15%, Points required for next Level: 340
    Overall activity: 0%

    Registriert seit
    Dec 2005
    Ort
    Here
    Beiträge
    2.715
    Points
    13.310
    Level
    75
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von JoeDaStudd
    hi, can anyone tell me the commands for the following;
    to pause the game
    to exit the game to luaplayer (on the psp)
    Pm me the anwser or reply here thanks
    to pause, pretty simple actually. its just a function.

    Example:
    Code:
    function pause()
    
       white = Color.new(255, 255, 255)
    
          while true do
    
             screen:clear()
    
             pad = Controls.read()
    
             screen:print(x, y, "Press Start to continue", white)
    
             if pad:start() then
                break
             end
    
             screen.flip()
             screen.waitVblankStart()
          end
    end
    To quit back to luaplayer you just make a variable that will be your 'control' of whether or not the game will be 'on'.

    Example:
    Code:
    quit = false
    [functions]
    [game]
    
    --in all your functions and in the main loop, you put:
    if quit == true then
    break
    end
    To Altair: Thanks!
    Geändert von EminentJonFrost (05-10-2006 um 11:59 AM Uhr)
    [CENTER][IMG]http://img148.imageshack.us/img148/6985/siglw8.jpg[/IMG][/CENTER]

  27. #2187
    Points: 4.063, Level: 40
    Level completed: 57%, Points required for next Level: 87
    Overall activity: 0%

    Registriert seit
    May 2006
    Beiträge
    41
    Points
    4.063
    Level
    40
    Downloads
    0
    Uploads
    0

    Standard

    2 days ago, I had no idea what you were talking about...

    now, i understand it all :)

  28. #2188
    QJ Gamer Green
    Points: 13.310, Level: 75
    Level completed: 15%, Points required for next Level: 340
    Overall activity: 0%

    Registriert seit
    Dec 2005
    Ort
    Here
    Beiträge
    2.715
    Points
    13.310
    Level
    75
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von Tritoch
    2 days ago, I had no idea what you were talking about...

    now, i understand it all :)
    you mean me?
    [CENTER][IMG]http://img148.imageshack.us/img148/6985/siglw8.jpg[/IMG][/CENTER]

  29. #2189
    QJ Gamer Bronze
    Points: 5.924, Level: 49
    Level completed: 87%, Points required for next Level: 26
    Overall activity: 0%

    Registriert seit
    Feb 2006
    Ort
    Earth, UK
    Beiträge
    457
    Points
    5.924
    Level
    49
    Downloads
    0
    Uploads
    0

    Standard

    thanks
    <<Put A message Here>>
    <<Just made another rubbish website visit it here.>>

  30. #2190
    Points: 4.063, Level: 40
    Level completed: 57%, Points required for next Level: 87
    Overall activity: 0%

    Registriert seit
    May 2006
    Beiträge
    41
    Points
    4.063
    Level
    40
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von EminentJonFrost
    you mean me?
    i meant all lua coders... :icon_razz


 

Tags for this Thread

Forumregeln

  • Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
  • Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
  • Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
  • Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.
  •  





Alle Zeitangaben in WEZ -8. Es ist jetzt 09:00 PM Uhr.

Use of this Web site constitutes acceptance of the TERMS & CONDITIONS and PRIVACY POLICY
Copyright © , Caputo Media, LLC. All Rights Reserved. Cluster .