Seite 319 von 342 ErsteErste ... 219 269 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 ... LetzteLetzte
Zeige Ergebnis 9.541 bis 9.570 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 KiNGxLeGiTx i figured out what was wrong but i still need help its my wav file i loaded ...

  
  1. #9541
    QJ Gamer Green
    Points: 3.567, Level: 37
    Level completed: 45%, Points required for next Level: 83
    Overall activity: 0%

    Registriert seit
    May 2008
    Ort
    The Netherlands
    Beiträge
    330
    Points
    3.567
    Level
    37
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von KiNGxLeGiTx Beitrag anzeigen
    i figured out what was wrong but i still need help its my wav file i loaded up another one and it worked but i cant get my korn.wav to work
    If other files work, then your korn.wav is corrupt or something.



  2. #9542
    Points: 2.231, Level: 28
    Level completed: 54%, Points required for next Level: 69
    Overall activity: 0%
    Achievements:
    First 1000 Experience Points

    Registriert seit
    Dec 2008
    Beiträge
    27
    Points
    2.231
    Level
    28
    Downloads
    0
    Uploads
    0

    Standard

    k thanks

  3. #9543
    QJ Gamer Blue
    Points: 2.467, Level: 30
    Level completed: 12%, Points required for next Level: 133
    Overall activity: 0%

    Registriert seit
    Aug 2008
    Ort
    Pennsylvania
    Beiträge
    17
    Points
    2.467
    Level
    30
    Downloads
    0
    Uploads
    0

    Standard

    Is there a drag and drop function?

  4. #9544
    QJ Gamer Green
    Points: 3.567, Level: 37
    Level completed: 45%, Points required for next Level: 83
    Overall activity: 0%

    Registriert seit
    May 2008
    Ort
    The Netherlands
    Beiträge
    330
    Points
    3.567
    Level
    37
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von PatriotsFan342 Beitrag anzeigen
    Is there a drag and drop function?
    Read the functions list of the luaplayer HM and you'll find the function;) Don't just ask if you didn' search yourself first.

  5. #9545
    QJ Gamer Blue
    Points: 2.467, Level: 30
    Level completed: 12%, Points required for next Level: 133
    Overall activity: 0%

    Registriert seit
    Aug 2008
    Ort
    Pennsylvania
    Beiträge
    17
    Points
    2.467
    Level
    30
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von malliet Beitrag anzeigen
    Read the functions list of the luaplayer HM and you'll find the function;) Don't just ask if you didn' search yourself first.
    Where?, is it on the lua player official website or is it on here on the forums?

  6. #9546
    QJ Gamer Green
    Points: 4.034, Level: 40
    Level completed: 43%, Points required for next Level: 116
    Overall activity: 0%

    Registriert seit
    Jul 2008
    Beiträge
    467
    Points
    4.034
    Level
    40
    Downloads
    0
    Uploads
    0

    Standard

    Its in the LPHM Readme
    My Releases:
    ---------------------------------------------------
    [URL="http://forums.qj.net/showthread.php?t=145654"]ROFLFlasher[/URL]

    [URL="http://forums.qj.net/showthread.php?t=144892"]DTS MGS Edition[/URL]

    [URL="http://forums.qj.net/showthread.php?t=143735"]Arkanoid Deluxe Beta[/URL]

    [URL="http://forums.qj.net/showthread.php?p=2144700#post2144700"]SAVIOR![/URL]

  7. #9547
    QJ Gamer Green
    Points: 4.034, Level: 40
    Level completed: 43%, Points required for next Level: 116
    Overall activity: 0%

    Registriert seit
    Jul 2008
    Beiträge
    467
    Points
    4.034
    Level
    40
    Downloads
    0
    Uploads
    0

    Standard

    How would I go about rotating images?
    My Releases:
    ---------------------------------------------------
    [URL="http://forums.qj.net/showthread.php?t=145654"]ROFLFlasher[/URL]

    [URL="http://forums.qj.net/showthread.php?t=144892"]DTS MGS Edition[/URL]

    [URL="http://forums.qj.net/showthread.php?t=143735"]Arkanoid Deluxe Beta[/URL]

    [URL="http://forums.qj.net/showthread.php?p=2144700#post2144700"]SAVIOR![/URL]

  8. #9548
    Lua guy
    Points: 11.690, Level: 71
    Level completed: 10%, Points required for next Level: 360
    Overall activity: 0%

    Registriert seit
    Jan 2008
    Ort
    Wales, cardiff
    Beiträge
    1.442
    Points
    11.690
    Level
    71
    My Mood
    Blah
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von xXChromeXx Beitrag anzeigen
    Its in the LPHM Readme
    Quoting your owns words. There's a function. Or you could just use simple math. With PGELUA, you can also rotate images.
    For HM i think it's Image.rotate() .

  9. #9549
    QJ Gamer Green
    Points: 3.721, Level: 38
    Level completed: 48%, Points required for next Level: 79
    Overall activity: 0%

    Registriert seit
    Jan 2008
    Beiträge
    612
    Points
    3.721
    Level
    38
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von xXChromeXx Beitrag anzeigen
    How would I go about rotating images?
    pge.texture.draw(x,y,w,h, tx,ty,tw,th,rotationinrad ians)
    [size=3][url=http://luaplayer.org/forums/index.php?topic=507]Complete Lua development cycle outline[/url][/size]

  10. #9550
    QJ Gamer Green
    Points: 4.034, Level: 40
    Level completed: 43%, Points required for next Level: 116
    Overall activity: 0%

    Registriert seit
    Jul 2008
    Beiträge
    467
    Points
    4.034
    Level
    40
    Downloads
    0
    Uploads
    0

    Standard

    Thanks
    My Releases:
    ---------------------------------------------------
    [URL="http://forums.qj.net/showthread.php?t=145654"]ROFLFlasher[/URL]

    [URL="http://forums.qj.net/showthread.php?t=144892"]DTS MGS Edition[/URL]

    [URL="http://forums.qj.net/showthread.php?t=143735"]Arkanoid Deluxe Beta[/URL]

    [URL="http://forums.qj.net/showthread.php?p=2144700#post2144700"]SAVIOR![/URL]

  11. #9551
    QJ Gamer Blue
    Points: 2.467, Level: 30
    Level completed: 12%, Points required for next Level: 133
    Overall activity: 0%

    Registriert seit
    Aug 2008
    Ort
    Pennsylvania
    Beiträge
    17
    Points
    2.467
    Level
    30
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von xXChromeXx Beitrag anzeigen
    Its in the LPHM Readme
    I just checked and i didnt find a readme? Which version is it in?

  12. #9552
    QJ Gamer Green
    Points: 3.721, Level: 38
    Level completed: 48%, Points required for next Level: 79
    Overall activity: 0%

    Registriert seit
    Jan 2008
    Beiträge
    612
    Points
    3.721
    Level
    38
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von PatriotsFan342 Beitrag anzeigen
    I just checked and i didnt find a readme? Which version is it in?
    Probly because HM is busy adding useless features rather than documenting and explaing everything he has.
    [size=3][url=http://luaplayer.org/forums/index.php?topic=507]Complete Lua development cycle outline[/url][/size]

  13. #9553
    QJ Gamer Bronze
    Points: 5.826, Level: 49
    Level completed: 38%, Points required for next Level: 124
    Overall activity: 0%

    Registriert seit
    Aug 2007
    Ort
    Everywhere
    Beiträge
    206
    Points
    5.826
    Level
    49
    Downloads
    0
    Uploads
    0

    Standard

    Hi. I was wondering if there is a lua adhoc file transfer program out there, somewhere?

    If not, it would be possible, right? Theoretically..
    Pokemon Islands in Development : Qj Forum | Google Forum | Probords Forum

  14. #9554
    QJ Gamer Bronze
    Points: 5.381, Level: 47
    Level completed: 16%, Points required for next Level: 169
    Overall activity: 0%

    Registriert seit
    Jul 2006
    Beiträge
    550
    Points
    5.381
    Level
    47
    Downloads
    1
    Uploads
    0

    Standard

    It would be easy to accomplish, but there are already better ones in C....

  15. #9555
    QJ Gamer Bronze
    Points: 5.826, Level: 49
    Level completed: 38%, Points required for next Level: 124
    Overall activity: 0%

    Registriert seit
    Aug 2007
    Ort
    Everywhere
    Beiträge
    206
    Points
    5.826
    Level
    49
    Downloads
    0
    Uploads
    0

    Standard

    I know, I use one. But I was wanting to get one in lua so I could look at it and learn from it.

    I've been curious how it would work, and since lua is a simple language, it would be easier to understand one written in lua.

    I've also wondered.. if a psp was receiving data from adhoc, and 2 other psp's were sending different data at the same time... would it get jumbled up?
    Pokemon Islands in Development : Qj Forum | Google Forum | Probords Forum

  16. #9556
    QJ Gamer Green
    Points: 3.567, Level: 37
    Level completed: 45%, Points required for next Level: 83
    Overall activity: 0%

    Registriert seit
    May 2008
    Ort
    The Netherlands
    Beiträge
    330
    Points
    3.567
    Level
    37
    Downloads
    0
    Uploads
    0

    Standard

    I would say try it out

  17. #9557
    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 chrisp6825 Beitrag anzeigen
    I've also wondered.. if a psp was receiving data from adhoc, and 2 other psp's were sending different data at the same time... would it get jumbled up?
    no, the psp's adhoc checks the mac address of the packet to make sure it's receiving data from the correct psp
    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

  18. #9558
    Developer and Tutor.
    Points: 8.736, Level: 62
    Level completed: 96%, Points required for next Level: 14
    Overall activity: 0%

    Registriert seit
    Jul 2007
    Ort
    Widnes, England
    Beiträge
    1.649
    Points
    8.736
    Level
    62
    My Mood
    Happy
    Downloads
    0
    Uploads
    0

    Standard

    not in lua player hm it doesnt
    ------ FaT3oYCG -----
    AKA Craig, call me what you want to It's your preference.
    My Website: http://www.modern-gamer.co.uk/

    Currently working on:
    (0) MediaGrab
    (0) PGE Gears Of War - On hold (Very large project).
    (0) PS???? -On Hold A tactical 2d side scrolling game involving AI and online multiplayer features. - Tile engine nearley finished (1 bug to fix).

  19. #9559
    QJ Gamer Bronze
    Points: 5.381, Level: 47
    Level completed: 16%, Points required for next Level: 169
    Overall activity: 0%

    Registriert seit
    Jul 2006
    Beiträge
    550
    Points
    5.381
    Level
    47
    Downloads
    1
    Uploads
    0

    Standard

    Really? I'm pretty sure it's an internal thing...

  20. #9560
    QJ Gamer Bronze
    Points: 5.826, Level: 49
    Level completed: 38%, Points required for next Level: 124
    Overall activity: 0%

    Registriert seit
    Aug 2007
    Ort
    Everywhere
    Beiträge
    206
    Points
    5.826
    Level
    49
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von malliet Beitrag anzeigen
    I would say try it out
    well, thats kinda why I'm asking.. I can't. I only have 2 psp's and one's wifi card is broken.

    I would think that it wouldn't get results from 2 psp's in one "Adhoc.recv()" call, but I think there is a chance that the next time you call "Adhoc.recv()" it could get results from a completely different psp.


    I bet there is someone who's experimented with this and figured it out.. are there any 3 or more player games in Lua using adhoc?

    All I've seen are 2 player i think.
    Pokemon Islands in Development : Qj Forum | Google Forum | Probords Forum

  21. #9561
    Developer and Tutor.
    Points: 8.736, Level: 62
    Level completed: 96%, Points required for next Level: 14
    Overall activity: 0%

    Registriert seit
    Jul 2007
    Ort
    Widnes, England
    Beiträge
    1.649
    Points
    8.736
    Level
    62
    My Mood
    Happy
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von Nielkie Beitrag anzeigen
    Really? I'm pretty sure it's an internal thing...
    no im pretty sure that any psp on the receiving end of an app of hm would get the data even if it was not ment for that psp, you need to program it in if you want it to realize which psp is which.
    ------ FaT3oYCG -----
    AKA Craig, call me what you want to It's your preference.
    My Website: http://www.modern-gamer.co.uk/

    Currently working on:
    (0) MediaGrab
    (0) PGE Gears Of War - On hold (Very large project).
    (0) PS???? -On Hold A tactical 2d side scrolling game involving AI and online multiplayer features. - Tile engine nearley finished (1 bug to fix).

  22. #9562
    QJ Gamer Bronze
    Points: 5.826, Level: 49
    Level completed: 38%, Points required for next Level: 124
    Overall activity: 0%

    Registriert seit
    Aug 2007
    Ort
    Everywhere
    Beiträge
    206
    Points
    5.826
    Level
    49
    Downloads
    0
    Uploads
    0

    Standard

    Um I have a small question..
    if you were trying to create a top-down style game and wanted to "turn the lights out" and use a flashlight, how would the best way to do that be?

    I was thinking of making a real big black box that has a hole in the middle for the player's image, and a flashlight's beam of light cut out. But I don't think this would be the best and only way.

    Any thoughts?

    By the way, here's a pic to help describe what I'm talking about :
    Spoiler for image:


    I want to be able to see anything thats under the yellow beam, but not in the black..


    Thanks.
    Pokemon Islands in Development : Qj Forum | Google Forum | Probords Forum

  23. #9563
    QJ Gamer Blue
    Points: 2.426, Level: 29
    Level completed: 84%, Points required for next Level: 24
    Overall activity: 0%
    Achievements:
    First 1000 Experience Points

    Registriert seit
    Aug 2008
    Beiträge
    26
    Points
    2.426
    Level
    29
    Downloads
    0
    Uploads
    0

    Standard

    Use alpha blending in PGE.

  24. #9564
    QJ Gamer Green
    Points: 3.567, Level: 37
    Level completed: 45%, Points required for next Level: 83
    Overall activity: 0%

    Registriert seit
    May 2008
    Ort
    The Netherlands
    Beiträge
    330
    Points
    3.567
    Level
    37
    Downloads
    0
    Uploads
    0

    Standard

    Quick question: Is there a transform function in LUA? I'm working on a Dragonball Z RPG and I want if you press X Goku's transforms in a super saiyen

  25. #9565
    QJ Gamer Green
    Points: 3.721, Level: 38
    Level completed: 48%, Points required for next Level: 79
    Overall activity: 0%

    Registriert seit
    Jan 2008
    Beiträge
    612
    Points
    3.721
    Level
    38
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von malliet Beitrag anzeigen
    Quick question: Is there a transform function in LUA? I'm working on a Dragonball Z RPG and I want if you press X Goku's transforms in a super saiyen
    that's not something you use a function for, that's something you program yourself.

    Code:
    ...
    goku.sprite = image of goku
    ...
    while true do
    ...
    if pad:cross() then
        goku.sprite = image of super saiyen
    end
    ...
    end
    [size=3][url=http://luaplayer.org/forums/index.php?topic=507]Complete Lua development cycle outline[/url][/size]

  26. #9566
    QJ Gamer Green
    Points: 3.567, Level: 37
    Level completed: 45%, Points required for next Level: 83
    Overall activity: 0%

    Registriert seit
    May 2008
    Ort
    The Netherlands
    Beiträge
    330
    Points
    3.567
    Level
    37
    Downloads
    0
    Uploads
    0

    Standard

    That's what I meant, but I don't want it to transform that way. I have pictures that he's powering up and yelling etc. and finnaly becomes Super Saiyen. Just like in the GBA Dbz games. But I think that's impossible with lua.

  27. #9567
    QJ Gamer Green
    Points: 3.721, Level: 38
    Level completed: 48%, Points required for next Level: 79
    Overall activity: 0%

    Registriert seit
    Jan 2008
    Beiträge
    612
    Points
    3.721
    Level
    38
    Downloads
    0
    Uploads
    0

    Standard

    no, it is not impossible. you program it yourself....that's part of what programming is.
    [size=3][url=http://luaplayer.org/forums/index.php?topic=507]Complete Lua development cycle outline[/url][/size]

  28. #9568
    QJ Gamer Green
    Points: 3.567, Level: 37
    Level completed: 45%, Points required for next Level: 83
    Overall activity: 0%

    Registriert seit
    May 2008
    Ort
    The Netherlands
    Beiträge
    330
    Points
    3.567
    Level
    37
    Downloads
    0
    Uploads
    0

    Standard

    I tried, but I failed, and that's why I'm asking it here. But never mind; I will try it again;)

  29. #9569
    QJ Gamer Green
    Points: 3.721, Level: 38
    Level completed: 48%, Points required for next Level: 79
    Overall activity: 0%

    Registriert seit
    Jan 2008
    Beiträge
    612
    Points
    3.721
    Level
    38
    Downloads
    0
    Uploads
    0

    Standard

    obviously you didn't think it through.

    make a variable for current image of player
    if player presses x, change the image into the next image in the animation series

    then after a couple loops, change it to the next

    repeat that until it is the final image

    draw the current player image every loop
    [size=3][url=http://luaplayer.org/forums/index.php?topic=507]Complete Lua development cycle outline[/url][/size]

  30. #9570
    QJ Gamer Green
    Points: 3.567, Level: 37
    Level completed: 45%, Points required for next Level: 83
    Overall activity: 0%

    Registriert seit
    May 2008
    Ort
    The Netherlands
    Beiträge
    330
    Points
    3.567
    Level
    37
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von TurtlesPwn Beitrag anzeigen
    obviously you didn't think it through.

    make a variable for current image of player
    if player presses x, change the image into the next image in the animation series

    then after a couple loops, change it to the next

    repeat that until it is the final image

    draw the current player image every loop
    Oke, thanks for the tip


 

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:01 PM Uhr.

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