Seite 305 von 342 ErsteErste ... 205 255 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 ... LetzteLetzte
Zeige Ergebnis 9.121 bis 9.150 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; I don't think ANY luaplayer YET supports unzipping, That could be a feature 4 luaplayerHM in the future...

  
  1. #9121
    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

    I don't think ANY luaplayer YET supports unzipping, That could be a feature 4 luaplayerHM in the future



  2. #9122
    Banned for LIFE
    Points: 18.744, Level: 86
    Level completed: 79%, Points required for next Level: 106
    Overall activity: 0%

    Registriert seit
    Oct 2006
    Ort
    East London, England
    Beiträge
    2
    Points
    18.744
    Level
    86
    Downloads
    0
    Uploads
    0

    Standard

    As if it isnt bloated enough :/

  3. #9123
    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 eldiablov Beitrag anzeigen
    As if it isnt bloated enough :/
    :ROFL: true. I didn't ask though. I think Zip support is pretty useless.
    I don't see myself ever needing to use it.

    My question: Could i connect to a website. And download a file On that website, using the correct url.
    eg http://www.watever.com/file.lua
    And then could i download the new script to replace(overwrite) the new 1??

  4. #9124
    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

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

    How Long until PGE??
    I haven't seen IWN on in a while.

  6. #9126
    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

    Sooner than you probably think

  7. #9127
    Points: 2.355, Level: 29
    Level completed: 37%, Points required for next Level: 95
    Overall activity: 0%
    Achievements:
    First 1000 Experience Points

    Registriert seit
    Aug 2008
    Beiträge
    13
    Points
    2.355
    Level
    29
    Downloads
    0
    Uploads
    0

    Standard

    Hey fellas,
    well um I'm not sure if i can post here since I'm not really a "developer" but here goes.

    I'm learning LUA and I have seen a few tutorials around via google and I stumbled upon the "Ultimate QJ Guide" which had a few tutorials but not what I am looking for.

    Anyways, is there a tutorial on sprite animation? If not could someone just tell me the basics of sprite animation and i could fill in the rest.

    It does not matter if its on multi images or sprite sheets

    thanks in advance

  8. #9128
    QJ Gamer Platinum
    Points: 66.627, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Overall activity: 0%

    Registriert seit
    Feb 2006
    Ort
    National Front Disco
    Beiträge
    13.057
    Points
    66.627
    Level
    100
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von tre_flip Beitrag anzeigen
    Hey fellas,
    well um I'm not sure if i can post here since I'm not really a "developer" but here goes.

    I'm learning LUA and I have seen a few tutorials around via google and I stumbled upon the "Ultimate QJ Guide" which had a few tutorials but not what I am looking for.

    Anyways, is there a tutorial on sprite animation? If not could someone just tell me the basics of sprite animation and i could fill in the rest.

    It does not matter if its on multi images or sprite sheets

    thanks in advance
    Take a look here. :)

  9. #9129
    Points: 2.355, Level: 29
    Level completed: 37%, Points required for next Level: 95
    Overall activity: 0%
    Achievements:
    First 1000 Experience Points

    Registriert seit
    Aug 2008
    Beiträge
    13
    Points
    2.355
    Level
    29
    Downloads
    0
    Uploads
    0

    Standard

    Thanks for the link Moose I appreciate it.
    Its too bad I don't know how to use C, I will try and convert it but I am not sure if I will get this to work haha.

  10. #9130
    QJ Gamer Blue
    Points: 4.268, Level: 41
    Level completed: 59%, Points required for next Level: 82
    Overall activity: 0%

    Registriert seit
    Apr 2008
    Beiträge
    497
    Points
    4.268
    Level
    41
    Downloads
    0
    Uploads
    0

    Standard

    basically have a timer and have it display a different image at a certain time interval.

  11. #9131
    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.
    Have an integer counter, not a timer, counting, and display each image for an interval of that counter's range of counting, and then when it passes the last frame's range, reset to 0 and start over.

    http://www.forums.evilmana.com/index...;topicseen#new

  12. #9132
    Raining
    Points: 7.355, Level: 57
    Level completed: 3%, Points required for next Level: 195
    Overall activity: 0%

    Registriert seit
    Jun 2005
    Ort
    In The Fog...
    Beiträge
    545
    Points
    7.355
    Level
    57
    My Mood
    Relaxed
    Downloads
    0
    Uploads
    0

    Standard

    TurtlesPwn got to it.

  13. #9133
    Points: 2.355, Level: 29
    Level completed: 37%, Points required for next Level: 95
    Overall activity: 0%
    Achievements:
    First 1000 Experience Points

    Registriert seit
    Aug 2008
    Beiträge
    13
    Points
    2.355
    Level
    29
    Downloads
    0
    Uploads
    0

    Standard

    I don't think that will work. I am trying to make it so when my character moves it animates with the movement. Could I use an if then statement saying that when it moves, lets say 2 pixels over to resume, wait 1, then pause?

  14. #9134
    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 tre_flip Beitrag anzeigen
    I don't think that will work. I am trying to make it so when my character moves it animates with the movement. Could I use an if then statement saying that when it moves, lets say 2 pixels over to resume, wait 1, then pause?
    HUH?? you want ur character 2 move just 2 pixels. then pause??
    May i ask why??
    Though its simple, using animLib or timers 4 animation.

  15. #9135
    Raining
    Points: 7.355, Level: 57
    Level completed: 3%, Points required for next Level: 195
    Overall activity: 0%

    Registriert seit
    Jun 2005
    Ort
    In The Fog...
    Beiträge
    545
    Points
    7.355
    Level
    57
    My Mood
    Relaxed
    Downloads
    0
    Uploads
    0

    Standard

    Okay, my post that I erased had to do with your problem. So apparently I did not need to erase ti.

    Depending on what you want to do, there are different methods for animation. In your case, you want to make the character move and animate at the same time so it looks like he is walking. The simplest way to do this would be to have two frames for each movement. That is a walking and standing frame for going North, South, East, and West.

    Now, if you have this, good, but if you have more than just two frames for each direction i suggestion you cut it down to just two for now that way you can learn the basics. I will not be posting any code that way you can figure out how to code it yourself and therefore understand it better but I will give you the concept.

    When you make the character move you want it to change its frame to a walking frame then when it moves again it should change back to a standing frame. These two frames combined make it look like its legs are actually moving and walking. So, in order to do this, you should basically make it so that when your sprite walks it displays frame 1. If it walks again and frame 1 is showing it should display frame 2. In this way it will alternate between frame 1 and frame 2 so that it looks like it is walking.

    I highly recommend you try to figure out the code for yourself as it will igve you a better learning experience than if you had someone show you exactly how it works.

  16. #9136
    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

    THe best advice, You also get a sense of achievement lol

  17. #9137
    Raining
    Points: 7.355, Level: 57
    Level completed: 3%, Points required for next Level: 195
    Overall activity: 0%

    Registriert seit
    Jun 2005
    Ort
    In The Fog...
    Beiträge
    545
    Points
    7.355
    Level
    57
    My Mood
    Relaxed
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von dan369 Beitrag anzeigen
    THe best advice, You also get a sense of achievement lol
    Heh, yup. I spent a few days working on this alone before I finally got it just right and boy did it feel so cool to see a little man walking across the screen.

  18. #9138
    Points: 2.355, Level: 29
    Level completed: 37%, Points required for next Level: 95
    Overall activity: 0%
    Achievements:
    First 1000 Experience Points

    Registriert seit
    Aug 2008
    Beiträge
    13
    Points
    2.355
    Level
    29
    Downloads
    0
    Uploads
    0

    Standard

    ok i am working an old code which i used to simply move a sprite around ill PM you wicked, with my sample code

  19. #9139
    QJ Gamer Green
    Points: 9.319, Level: 64
    Level completed: 90%, Points required for next Level: 31
    Overall activity: 99,0%

    Registriert seit
    May 2008
    Ort
    GA, USA
    Beiträge
    243
    Points
    9.319
    Level
    64
    Downloads
    0
    Uploads
    0

    Standard

    I need help with getting luaplayerhm7 to download a txt file from my site. And depending upon what information is in that txt file I need it to be able to download a zip file from my site. They will both be stored in the root of my site, e.g. www.mysite.com/(files i need here). A bit of code i could use would help greatly.

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

  21. #9141
    Points: 2.355, Level: 29
    Level completed: 37%, Points required for next Level: 95
    Overall activity: 0%
    Achievements:
    First 1000 Experience Points

    Registriert seit
    Aug 2008
    Beiträge
    13
    Points
    2.355
    Level
    29
    Downloads
    0
    Uploads
    0

    Standard

    hey guys i cant text my script but i think this will work for sprite animation

    if pad:left() and Player1[1].x > 0 and Player == Player[1]
    then Player1[1].x = Player1[1].x - 2 and screen:blit(Player[1].x,Player[1].y,player2)
    end

  22. #9142
    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

    Nope, ur saying if left is pressed and the player's X is over 0 and the Player == Player[1] --- i'm persuming this is a table then move the player. then blit the Image every time left is pressed which is not needed.
    -=Double Post Merge =-
    All u need 4 VERY SIMPLE animation is a variable and a function theres a clue 4 u.
    Sry bout the double post.
    Geändert von dan369 (08-06-2008 um 03:59 PM Uhr) Grund: Automerged Doublepost

  23. #9143
    Points: 2.355, Level: 29
    Level completed: 37%, Points required for next Level: 95
    Overall activity: 0%
    Achievements:
    First 1000 Experience Points

    Registriert seit
    Aug 2008
    Beiträge
    13
    Points
    2.355
    Level
    29
    Downloads
    0
    Uploads
    0

    Standard

    its not finished but i will add more to it making it basicaly alternate between player1 and player2
    and yes that was a table

    BUT
    will it work? idc if its not needed it works right?

  24. #9144
    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

    It don't think it will work.
    example:
    Code:
    timer = 0
    
    function moveL()
    timer = timer + 1
    
    if timer == 2 then
    change img
    elseif timer == 4 then 
    change img
          end
    end

  25. #9145
    Points: 2.355, Level: 29
    Level completed: 37%, Points required for next Level: 95
    Overall activity: 0%
    Achievements:
    First 1000 Experience Points

    Registriert seit
    Aug 2008
    Beiträge
    13
    Points
    2.355
    Level
    29
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von dan369 Beitrag anzeigen
    It don't think it will work.
    example:
    Code:
    timer = 0
    
    function moveL()
    timer = timer + 1
    
    if timer == 2 then
    change img
    elseif timer == 4 then 
    change img
          end
    end
    alright ill check out your thing but dont you definitely need a command to reset the timer back to 0?

  26. #9146
    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

    yep, but i didnt want to give the code on a plate 2 u.
    U can do that urself.

  27. #9147
    Points: 2.355, Level: 29
    Level completed: 37%, Points required for next Level: 95
    Overall activity: 0%
    Achievements:
    First 1000 Experience Points

    Registriert seit
    Aug 2008
    Beiträge
    13
    Points
    2.355
    Level
    29
    Downloads
    0
    Uploads
    0

    Standard

    haha i thought you were trying to test me

  28. #9148
    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

    I shows basic Logic. U've passed Test 1 LOL
    also don't re-use that variable more than 4 times. Otherwise..........,,.. the animation messes up.

  29. #9149
    Points: 2.355, Level: 29
    Level completed: 37%, Points required for next Level: 95
    Overall activity: 0%
    Achievements:
    First 1000 Experience Points

    Registriert seit
    Aug 2008
    Beiträge
    13
    Points
    2.355
    Level
    29
    Downloads
    0
    Uploads
    0

    Standard

    dont re use the timer reset variable 4 times?

  30. #9150
    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

    Forgot That. Have a drifferent timer 4 each animation, e.g timer2 = 0, timer3 = 0 etc.


 

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

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