Seite 45 von 342 ErsteErste ... 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 95 145 ... LetzteLetzte
Zeige Ergebnis 1.321 bis 1.350 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; No, the filenames are correct, I'm sure about that, because, otherwise, it wouldn't load on the PSP too, would it? ...

  
  1. #1321
    QJ Gamer Blue
    Points: 4.510, Level: 42
    Level completed: 80%, Points required for next Level: 40
    Overall activity: 0%

    Registriert seit
    Mar 2006
    Ort
    127.0.0.1
    Beiträge
    75
    Points
    4.510
    Level
    42
    Downloads
    0
    Uploads
    0

    Standard

    No, the filenames are correct, I'm sure about that, because, otherwise, it wouldn't load on the PSP too, would it?

    And as soon as I convert the pictures to png files, they won't work at all, not at the psp, nor at the box.



  2. #1322
    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

    And you're sure you changed the code so it know it is a png file

  3. #1323
    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

    Zitat Zitat von SjaakRake
    No, the filenames are correct, I'm sure about that, because, otherwise, it wouldn't load on the PSP too, would it?

    And as soon as I convert the pictures to png files, they won't work at all, not at the psp, nor at the box.

    I guess that you got a to old luaplayer to load .jpg files.
    Get the newest version at: http://luaplayer.org
    Make also sure that your extention in the string is the same as the file you are loading.
    Geändert von HaxxBlaster (04-04-2006 um 11:36 AM 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. #1324
    QJ Gamer Blue
    Points: 4.510, Level: 42
    Level completed: 80%, Points required for next Level: 40
    Overall activity: 0%

    Registriert seit
    Mar 2006
    Ort
    127.0.0.1
    Beiträge
    75
    Points
    4.510
    Level
    42
    Downloads
    0
    Uploads
    0

    Standard

    Yes, totally sure. I get the following errors:
    On psp:
    *something* IDAT: CRC Error.

    After which luaplayer shuts off
    And on the computer I get the same 'Error loading image' error.

  5. #1325
    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

    Your first picture works, then the other picture don't when you load it, and you don't have written the wrong namne.

    Then i guess that the file don't even exist.
    [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. #1326
    QJ Gamer Blue
    Points: 4.510, Level: 42
    Level completed: 80%, Points required for next Level: 40
    Overall activity: 0%

    Registriert seit
    Mar 2006
    Ort
    127.0.0.1
    Beiträge
    75
    Points
    4.510
    Level
    42
    Downloads
    0
    Uploads
    0

    Standard

    Yes, it does exist. I just don't get it. It seems like something is ****ing up all my .png files.

  7. #1327
    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

    If you add me to msn: [email protected] il.com i will have a look over for you.

  8. #1328
    QJ Gamer Blue
    Points: 4.510, Level: 42
    Level completed: 80%, Points required for next Level: 40
    Overall activity: 0%

    Registriert seit
    Mar 2006
    Ort
    127.0.0.1
    Beiträge
    75
    Points
    4.510
    Level
    42
    Downloads
    0
    Uploads
    0

    Standard

    Thanks, done, I'll stop chatting now in this topic now ^_^.

  9. #1329
    Your Fate is Grim...
    Points: 11.640, Level: 70
    Level completed: 98%, Points required for next Level: 10
    Overall activity: 0%

    Registriert seit
    Oct 2005
    Beiträge
    2.269
    Points
    11.640
    Level
    70
    Downloads
    0
    Uploads
    0

    Standard thx!!

    Zitat Zitat von califrag
    dude.. well.. i couldn't figure out how to do it from your code.. so I just wrote the code myself.. i understood what you meant.. just look at the attached script file... basically it builds a table of case numbers, sets a default case, removes it from the table, then each time "x" is pressed it selects a random case from the ones which are left, and then sets a new value for it... just download the script file and the eboot and test it out... pretty it up with some images and let me know how it works out for you!

    dude, u REALLY want above and beyond the call of duty. thx so much! if i were premium, id give u all my points(which is not that much)

    thx again!
    --------------------------------------------------------------------------------------

  10. #1330
    QJ Gamer Gold
    Points: 17.453, Level: 84
    Level completed: 21%, Points required for next Level: 397
    Overall activity: 0%

    Registriert seit
    Jul 2005
    Ort
    everywhere
    Beiträge
    3.526
    Points
    17.453
    Level
    84
    Downloads
    1
    Uploads
    0

    Standard

    Zitat Zitat von slicer4ever
    well i have a question and if any1 knows any tut's that would be helpful but heres my prob:
    kinda like aotm he has multiple angry faces shooting at the same time but i'm unsure how to do this i've been trying multiple things but can't figure out how to do it i hope you understand my prob and can help me out=-)
    i think you guys may have missed my question can some1 help me out?
    1. Failed....again...
    2. http://slicer.gibbocool.com/ stay updated on all my projects
    3. it'll be 5 years in june, that's nearly 1/4 of my life on this planet that i've visited these forums, what a ride it has been

  11. #1331
    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

    Zitat Zitat von slicer4ever
    i think you guys may have missed my question can some1 help me out?
    Which bit exactly are you having problems with?
    Have you checked out the tutorials at www.evilmana.com

  12. #1332
    QJ Gamer Gold
    Points: 17.453, Level: 84
    Level completed: 21%, Points required for next Level: 397
    Overall activity: 0%

    Registriert seit
    Jul 2005
    Ort
    everywhere
    Beiträge
    3.526
    Points
    17.453
    Level
    84
    Downloads
    1
    Uploads
    0

    Standard

    i need the line of duplicating my thing to happen with more than one person if youve played aotm then you know that the angry faces fire bullets at the same time so can someone help me with makeing it fire with more then one person
    1. Failed....again...
    2. http://slicer.gibbocool.com/ stay updated on all my projects
    3. it'll be 5 years in june, that's nearly 1/4 of my life on this planet that i've visited these forums, what a ride it has been

  13. #1333
    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

    Erm, You would put create the image 4 times in different positions, tell it to randomly move the images, put a timer in. Then you tell it them to fire in random directions, or the same? I don't know how yuo woulld go about it, but that's how i assume. I know what you mean though with AOTM. good game.

  14. #1334
    QJ Gamer Gold
    Points: 17.453, Level: 84
    Level completed: 21%, Points required for next Level: 397
    Overall activity: 0%

    Registriert seit
    Jul 2005
    Ort
    everywhere
    Beiträge
    3.526
    Points
    17.453
    Level
    84
    Downloads
    1
    Uploads
    0

    Standard

    well i guess i'll have to do it that way then(sighs)
    1. Failed....again...
    2. http://slicer.gibbocool.com/ stay updated on all my projects
    3. it'll be 5 years in june, that's nearly 1/4 of my life on this planet that i've visited these forums, what a ride it has been

  15. #1335
    Your Fate is Grim...
    Points: 11.640, Level: 70
    Level completed: 98%, Points required for next Level: 10
    Overall activity: 0%

    Registriert seit
    Oct 2005
    Beiträge
    2.269
    Points
    11.640
    Level
    70
    Downloads
    0
    Uploads
    0

    Standard

    hi all, im havin another prob.

    here is my code:

    Code:
    white = Color.new(0, 0, 0)
    
    System.usbDiskModeActivate()
    
    screen:clear()
    
    caseMoney = { 100000, 750000, 500000, 400000, 300000, 200000, 100000, 50000, 25000, 10000, 50000, 1000, 750, 500, 400, 300, 200, 100, 75, 50, 25, 10, 5, 1, .01 }
    
    math.randomseed(os.time())
    math.random()
    math.random()
    math.random()
    
    
    
    function startNewGame()
    	
    	
    	caseValue = { caseMoney[math.random(26)], caseMoney[math.random(26)], caseMoney[math.random(26)], caseMoney[math.random(26)], caseMoney[math.random(26)], caseMoney[math.random(26)], caseMoney[math.random(26)], caseMoney[math.random(26)], caseMoney[math.random(26)], caseMoney[math.random(26)], caseMoney[math.random(26)], caseMoney[math.random(26)], caseMoney[math.random(26)], caseMoney[math.random(26)], caseMoney[math.random(26)], caseMoney[math.random(26)], caseMoney[math.random(26)], caseMoney[math.random(26)], caseMoney[math.random(26)], caseMoney[math.random(26)], caseMoney[math.random(26)], caseMoney[math.random(26)], caseMoney[math.random(26)], caseMoney[math.random(26)], caseMoney[math.random(26)], caseMoney[math.random(26)] } 
    	
    end
    
    startNewGame()
    
    
    while true do
    
    pad = Controls.read()
    
            
            screen:print(150, 100, caseValue[1], white)
            screen:print(150, 140, caseValue[2], white)
            screen:print(150, 180, caseValue[20], white)
            
            if pad:start() then
                 break
       end
            
            screen.flip()
    	screen.waitVblankStart()
    end
    itworks, but the value of caseValue[1], instead of being random, just goes higher all the time. the values of caseValue[2] and caseValue[20] work fine. when. caseValue[1] goes over 1000000, luaplayer give me an error: index.lua:33: bad argument #2 to 'print' (string expected, got nil)

    press start to restart



    pls help. thx

    EDIT: how can i make it so that the maht.random(26) doesnt take the same value twice??
    Geändert von Grimfate126 (04-04-2006 um 02:32 PM Uhr)
    --------------------------------------------------------------------------------------

  16. #1336
    Developer
    Points: 8.545, Level: 62
    Level completed: 32%, Points required for next Level: 205
    Overall activity: 0%

    Registriert seit
    Aug 2005
    Beiträge
    472
    Points
    8.545
    Level
    62
    Downloads
    0
    Uploads
    0

    Standard

    I need some help... I got some music files to loop forever and it works, the only problem is that I can run it along side my game. Ill post the code for the music, but not the code ( as it is HUGE )


    Song Code:
    Code:
    Song = {}
    Song[1] = ("Songs/Why.it")
    Song[2] = ("Songs/monopoly2.it")
    Song[3] = ("Songs/compare1.it")
    
    pad = Controls.read()
    
    for i=1, 9999 do
    
    if i==1 then Music.playFile(Song[i])
    Music.volume(128)
    screen.waitVblankStart(9540)
    i=i+1
    end
    
    if i==2 then Music.playFile(Song[i])
    Music.volume(128)
    screen.waitVblankStart(11460)
    i=i+1
    end
    
    if i==3 then Music.playFile(Song[i])
    Music.volume(128)
    screen.waitVblankStart(13500)
    i=i-2
    end
    end

    PSP Monopoly | PSP Tic Tac Toe | PSP eMail and SMS | Drag Mini | Block Dude
    http://www.cools.biaklan.com
    Currently Working on ?????

    Quote of the Week

  17. #1337
    Points: 11.498, Level: 70
    Level completed: 62%, Points required for next Level: 152
    Overall activity: 50,0%

    Registriert seit
    Dec 2005
    Ort
    LBC
    Beiträge
    516
    Points
    11.498
    Level
    70
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von Grimfate126
    hi all, im havin another prob.

    here is my code:

    Code:
    white = Color.new(0, 0, 0)
    
    System.usbDiskModeActivate()
    
    screen:clear()
    
    caseMoney = { 100000, 750000, 500000, 400000, 300000, 200000, 100000, 50000, 25000, 10000, 50000, 1000, 750, 500, 400, 300, 200, 100, 75, 50, 25, 10, 5, 1, .01 }
    
    math.randomseed(os.time())
    math.random()
    math.random()
    math.random()
    
    
    
    function startNewGame()
    	
    	
    	caseValue = { caseMoney[math.random(26)], caseMoney[math.random(26)], caseMoney[math.random(26)], caseMoney[math.random(26)], caseMoney[math.random(26)], caseMoney[math.random(26)], caseMoney[math.random(26)], caseMoney[math.random(26)], caseMoney[math.random(26)], caseMoney[math.random(26)], caseMoney[math.random(26)], caseMoney[math.random(26)], caseMoney[math.random(26)], caseMoney[math.random(26)], caseMoney[math.random(26)], caseMoney[math.random(26)], caseMoney[math.random(26)], caseMoney[math.random(26)], caseMoney[math.random(26)], caseMoney[math.random(26)], caseMoney[math.random(26)], caseMoney[math.random(26)], caseMoney[math.random(26)], caseMoney[math.random(26)], caseMoney[math.random(26)], caseMoney[math.random(26)] } 
    	
    end
    
    startNewGame()
    
    
    while true do
    
    pad = Controls.read()
    
            
            screen:print(150, 100, caseValue[1], white)
            screen:print(150, 140, caseValue[2], white)
            screen:print(150, 180, caseValue[20], white)
            
            if pad:start() then
                 break
       end
            
            screen.flip()
    	screen.waitVblankStart()
    end
    itworks, but the value of caseValue[1], instead of being random, just goes higher all the time. the values of caseValue[2] and caseValue[20] work fine. when. caseValue[1] goes over 1000000, luaplayer give me an error: index.lua:33: bad argument #2 to 'print' (string expected, got nil)

    press start to restart



    pls help. thx

    EDIT: how can i make it so that the maht.random(26) doesnt take the same value twice??

    hmmm... basically you took the code I gave you... deconstructed it... and made it do exactly what you don't want it to do...

    You should try using my code again.. it does exactly what you want...

  18. #1338
    Your Fate is Grim...
    Points: 11.640, Level: 70
    Level completed: 98%, Points required for next Level: 10
    Overall activity: 0%

    Registriert seit
    Oct 2005
    Beiträge
    2.269
    Points
    11.640
    Level
    70
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von califrag
    hmmm... basically you took the code I gave you... deconstructed it... and made it do exactly what you don't want it to do...

    You should try using my code again.. it does exactly what you want...
    no, this for another game. ;) (same names, but im change it later, im lazy)
    and BTW about ur code, can u make it possible to assign EACH case a different money amount, the code u gave me only does it for ur case. thx(again)
    --------------------------------------------------------------------------------------

  19. #1339
    Points: 4.497, Level: 42
    Level completed: 74%, Points required for next Level: 53
    Overall activity: 0%

    Registriert seit
    Aug 2005
    Beiträge
    3
    Points
    4.497
    Level
    42
    Downloads
    0
    Uploads
    0

    Standard

    I don't know where else to ask this.

    When running lua programs, how do I quit them? Get out of them back to the Lua loader screen.

    Surely there has to be a way to do this. So far I've run quite a few, but have been unable to quit any of them.

  20. #1340
    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

    well normally its the start button or select.
    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

  21. #1341
    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 cools
    I need some help... I got some music files to loop forever and it works, the only problem is that I can run it along side my game. Ill post the code for the music, but not the code ( as it is HUGE )


    Song Code:
    Code:
    Song = {}
    Song[1] = ("Songs/Why.it")
    Song[2] = ("Songs/monopoly2.it")
    Song[3] = ("Songs/compare1.it")
    
    pad = Controls.read()
    
    for i=1, 9999 do
    
    if i==1 then Music.playFile(Song[i])
    Music.volume(128)
    screen.waitVblankStart(9540)
    i=i+1
    end
    
    if i==2 then Music.playFile(Song[i])
    Music.volume(128)
    screen.waitVblankStart(11460)
    i=i+1
    end
    
    if i==3 then Music.playFile(Song[i])
    Music.volume(128)
    screen.waitVblankStart(13500)
    i=i-2
    end
    end
    So what exactly is your problem? That you cant run it along side your game? Also i dont understand your code. You make it loop 9999 times eventhough there are only three songs. And you make them play right aftereachother. And also you pause the game while you play your music. So i assume this is the begin screen where you show who made it and stuff?
    LUA manual:
    [url]http://www.lua.org/manual/5.0/manual.html[/url]

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

  22. #1342
    QJ Gamer Blue
    Points: 4.510, Level: 42
    Level completed: 80%, Points required for next Level: 40
    Overall activity: 0%

    Registriert seit
    Mar 2006
    Ort
    127.0.0.1
    Beiträge
    75
    Points
    4.510
    Level
    42
    Downloads
    0
    Uploads
    0

    Standard

    I've encountered a little problem. As you can see in my code, I want the 'highlight.png' image to slide or hop to the left and right by using the left and right buttons. The only problem is, I only want the picture to go to the next 'state' upon pressing the key, but not sliding. So if I press the button once, I want it to go shift 10 pixxels, and when I press it again, it has to do another step.

    Code:
    highlight = Image.load("images/highlight.png")
    background = Image.load("images/background.png")
    x = 4
    y = 87
    while true do
    
            screen:blit(0, 0, background, 0, 0, background:width(), background:height(), false)
            screen:blit(x,y,highlight,0,0, highlight:width(), highlight:height(), true)
    	screen.waitVblankStart()
    	screen.flip()
    
    	pad = Controls.read()
    
               if pad:right() then
                          x = x + 10
               elseif pad:left() then
                          x = x - 10
               end
    end
    Thanks in advance

  23. #1343
    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

    You're not telling the image to move, you're just telling to make x a bigger number...
    I'm not quite sure how you would put it though...

  24. #1344
    QJ Gamer Blue
    Points: 4.510, Level: 42
    Level completed: 80%, Points required for next Level: 40
    Overall activity: 0%

    Registriert seit
    Mar 2006
    Ort
    127.0.0.1
    Beiträge
    75
    Points
    4.510
    Level
    42
    Downloads
    0
    Uploads
    0

    Standard

    Actually, the picture does move, hence the line:

    screen:blit(x,y,highlight ,0,0, highlight:width(), highlight:height(), true)

  25. #1345
    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

    first eliminate the screen wait vblanks start and put that at the end preceeded by a screen flip, then put oldpad = controls.read just after your pad = controls.read thing

    say something like this:

    while true do

    screen:blit(0, 0, background, 0, 0, background:width(), background:height(), false)
    screen:blit(x,y,highlight ,0,0, highlight:width(), highlight:height(), true)
    screen.flip()

    pad = Controls.read()
    oldpad = Controls.read()
    if pad:right() and pad ~= oldpad then
    x = x + 10
    oldpad = pad
    elseif pad:left() and pad ~= oldpad then
    x = x - 10
    oldpad = pad
    end

    screen.waitVblankStart()
    screen.flip()
    end
    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

  26. #1346
    QJ Gamer Blue
    Points: 4.510, Level: 42
    Level completed: 80%, Points required for next Level: 40
    Overall activity: 0%

    Registriert seit
    Mar 2006
    Ort
    127.0.0.1
    Beiträge
    75
    Points
    4.510
    Level
    42
    Downloads
    0
    Uploads
    0

    Standard

    Hmm, that one doesn't seem to work. It's doesn't shift and the screen flashes like a madman. I guess the pad and oldpad variables are colliding.

  27. #1347
    Developer
    Points: 8.545, Level: 62
    Level completed: 32%, Points required for next Level: 205
    Overall activity: 0%

    Registriert seit
    Aug 2005
    Beiträge
    472
    Points
    8.545
    Level
    62
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von Altair
    So what exactly is your problem? That you cant run it along side your game? Also i dont understand your code. You make it loop 9999 times eventhough there are only three songs. And you make them play right aftereachother. And also you pause the game while you play your music. So i assume this is the begin screen where you show who made it and stuff?
    The songs play right after each other without the loop. The loop is there so the songs will play [one after another] 9999 times ( so for a long time ). There is no need to have it pause in game, it needs to be playing as soon as the game starts, but not in the menus.

    PSP Monopoly | PSP Tic Tac Toe | PSP eMail and SMS | Drag Mini | Block Dude
    http://www.cools.biaklan.com
    Currently Working on ?????

    Quote of the Week

  28. #1348
    QJ Gamer Gold
    Points: 17.453, Level: 84
    Level completed: 21%, Points required for next Level: 397
    Overall activity: 0%

    Registriert seit
    Jul 2005
    Ort
    everywhere
    Beiträge
    3.526
    Points
    17.453
    Level
    84
    Downloads
    1
    Uploads
    0

    Standard

    or if you find a button you don't have to use and youve tried everything to quit do this:

    go into the script and put the following code at the bottom before the last end:

    if pad:triangle() then break
    end

    thats it although if it isn't triangle then heres all the buttons possible:
    pad:cross()
    pad:triangle()
    pad:circle()
    pad:square()
    pad:r()
    pad:l()
    pad:left()
    pad:right()
    pad:up()
    pad:down()

    i believe thats all of them

    edit: opps on last page was answering discofever's question
    1. Failed....again...
    2. http://slicer.gibbocool.com/ stay updated on all my projects
    3. it'll be 5 years in june, that's nearly 1/4 of my life on this planet that i've visited these forums, what a ride it has been

  29. #1349
    Gutya
    Points: 15.093, Level: 79
    Level completed: 49%, Points required for next Level: 257
    Overall activity: 0%

    Registriert seit
    Feb 2006
    Beiträge
    2.398
    Points
    15.093
    Level
    79
    Downloads
    0
    Uploads
    0

    Standard

    get rid of the first screen.flip(), so its like this:

    screen:blit(0, 0, background, 0, 0, background:width(), background:height(), false)
    screen:blit(x,y,highlight ,0,0, highlight:width(), highlight:height(), true)

    pad = Controls.read()
    oldpad = Controls.read()
    if pad:right() and pad ~= oldpad then
    x = x + 10
    oldpad = pad
    elseif pad:left() and pad ~= oldpad then
    x = x - 10
    oldpad = pad
    end

    screen.waitVblankStart()
    screen.flip()
    end
    D:

  30. #1350
    Is in your zone.
    Points: 24.342, Level: 94
    Level completed: 99%, Points required for next Level: 8
    Overall activity: 0%

    Registriert seit
    Oct 2005
    Ort
    Jacksonville, FL
    Beiträge
    3.429
    Points
    24.342
    Level
    94
    Downloads
    0
    Uploads
    0

    Standard

    NVRMIND but at line 30 i get that retarded "loop in gettable' error. This is the line of the error.
    Code:
    if stick.x>480 then
    Geändert von Mast3r_Shak3 (04-05-2006 um 02:37 PM Uhr)

    --XBL Gamertag: PhenoM904--


 

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 07:52 AM Uhr.

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