Seite 307 von 342 ErsteErste ... 207 257 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 ... LetzteLetzte
Zeige Ergebnis 9.181 bis 9.210 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; Alright, I have a lua question that isn't really to do with programming. I've been making a game for some ...

  
  1. #9181
    Seven Year Vet. BOW DOWN.
    Points: 14.794, Level: 78
    Level completed: 86%, Points required for next Level: 56
    Overall activity: 0%

    Registriert seit
    Dec 2005
    Ort
    Manchester, UK
    Beiträge
    2.240
    Points
    14.794
    Level
    78
    My Mood
    Cheerful
    Downloads
    1
    Uploads
    0

    Standard

    Alright, I have a lua question that isn't really to do with programming. I've been making a game for some time now, whilst back on 3.52 m33, using luaplayer 0.16 because it was apparantly the fastest, however last night I hit some PSP problems, bricked and had to update to 3.80 m33. My game wouldn't run on 3.80 m33, whilst other lua applcations would, so I tried using a different version. The only one I could get to work was HM7, but that dropped the frps of my game from 27 to 9. Next, I tried updating to 4.01 m33, to see if I could get luaplayer 0.16 to work on that. No joy.

    My question is, whats the fastest luaplayer avalible for 4.01 m33, or is there anything I can do to get luaplayer 0.16 to work with this firmware? Any ideas? (Ps. I do know I could just go back to 3.52 m33 and make this, but that means upon release it will still not work for newer firmwares, which would be a shame.)



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

    Zitat Zitat von Freshmilk Beitrag anzeigen
    Alright, I have a lua question that isn't really to do with programming. I've been making a game for some time now, whilst back on 3.52 m33, using luaplayer 0.16 because it was apparantly the fastest, however last night I hit some PSP problems, bricked and had to update to 3.80 m33. My game wouldn't run on 3.80 m33, whilst other lua applcations would, so I tried using a different version. The only one I could get to work was HM7, but that dropped the frps of my game from 27 to 9. Next, I tried updating to 4.01 m33, to see if I could get luaplayer 0.16 to work on that. No joy.

    My question is, whats the fastest luaplayer avalible for 4.01 m33, or is there anything I can do to get luaplayer 0.16 to work with this firmware? Any ideas? (Ps. I do know I could just go back to 3.52 m33 and make this, but that means upon release it will still not work for newer firmwares, which would be a shame.)
    Install the 1.5 kernel on your 4.01m33
    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]

  3. #9183
    Seven Year Vet. BOW DOWN.
    Points: 14.794, Level: 78
    Level completed: 86%, Points required for next Level: 56
    Overall activity: 0%

    Registriert seit
    Dec 2005
    Ort
    Manchester, UK
    Beiträge
    2.240
    Points
    14.794
    Level
    78
    My Mood
    Cheerful
    Downloads
    1
    Uploads
    0

    Standard

    Zitat Zitat von xXChromeXx Beitrag anzeigen
    Install the 1.5 kernel on your 4.01m33
    Sorry, I'm really new to the higher custom firmwares. Up until about 2 weeks ago I was on 3.03 OE-C. I'm not too sure of what you mean, considering I've set the configuration in recovery to 1.50 kernal, but I'll go find a guide or something. Thanks.

  4. #9184
    No longer a community member.
    Points: 46.662, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Overall activity: 0%

    Registriert seit
    Dec 2005
    Beiträge
    22
    Points
    46.662
    Level
    100
    Downloads
    0
    Uploads
    0

    Standard

    Zitat Zitat von Freshmilk Beitrag anzeigen
    Sorry, I'm really new to the higher custom firmwares. Up until about 2 weeks ago I was on 3.03 OE-C. I'm not too sure of what you mean, considering I've set the configuration in recovery to 1.50 kernal, but I'll go find a guide or something. Thanks.
    The 1.50 kernel does not come by default with the M33 firmwares anymore, you have to install in manually. This is because the slims can't run the 1.50 kernel. I would advise that you fix your game so that it will work on the slim, especially if you plan on entering it into a contest. Preventing many users from running your game simply because you can't be bothered to fix is pretty lame IMO.

    Anyways, I believe that you can find the 1.50 kernel addon on Dax's site.

  5. #9185
    Seven Year Vet. BOW DOWN.
    Points: 14.794, Level: 78
    Level completed: 86%, Points required for next Level: 56
    Overall activity: 0%

    Registriert seit
    Dec 2005
    Ort
    Manchester, UK
    Beiträge
    2.240
    Points
    14.794
    Level
    78
    My Mood
    Cheerful
    Downloads
    1
    Uploads
    0

    Standard

    I got the kernal add on, and for some reason the frame rate of my game has gone from 27 fps to 41. Strange, but cool. I was thinking of just relelasing the game with a different version of luaplayer for the slim, but having seen how much it lags now, I guess i'll have to find another way. How would you suggest I do it?

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

    Luaplayer for 1.00 should work on slim
    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. #9187
    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

    LuaplayerHM or Cools Mod or the Luaplayer 0.20 mod for kernel 3xx

  8. #9188
    Points: 1.864, Level: 25
    Level completed: 64%, Points required for next Level: 36
    Overall activity: 0%
    Achievements:
    First 1000 Experience Points

    Registriert seit
    Aug 2008
    Beiträge
    8
    Points
    1.864
    Level
    25
    Downloads
    0
    Uploads
    0

    Standard

    ok when i insert an image of a person for example how can i make that person move or do i have to get multiple pictures of dofferent actions?
    -=Double Post Merge =-
    Zitat Zitat von Freshmilk Beitrag anzeigen
    Alright, I have a lua question that isn't really to do with programming. I've been making a game for some time now, whilst back on 3.52 m33, using luaplayer 0.16 because it was apparantly the fastest, however last night I hit some PSP problems, bricked and had to update to 3.80 m33. My game wouldn't run on 3.80 m33, whilst other lua applcations would, so I tried using a different version. The only one I could get to work was HM7, but that dropped the frps of my game from 27 to 9. Next, I tried updating to 4.01 m33, to see if I could get luaplayer 0.16 to work on that. No joy.

    My question is, whats the fastest luaplayer avalible for 4.01 m33, or is there anything I can do to get luaplayer 0.16 to work with this firmware? Any ideas? (Ps. I do know I could just go back to 3.52 m33 and make this, but that means upon release it will still not work for newer firmwares, which would be a shame.)
    i used the team m33 version of lua on my psp 3.90 m33-3
    -=Double Post Merge =-
    how can i convert a .lua file into an eboot.pbp if possible?
    Geändert von pspprelgnd (08-09-2008 um 11:48 AM Uhr) Grund: Automerged Doublepost

  9. #9189
    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 pspprelgnd Beitrag anzeigen
    ok when i insert an image of a person for example how can i make that person move or do i have to get multiple pictures of dofferent actions?
    -=Double Post Merge =-


    i used the team m33 version of lua on my psp 3.90 m33-3
    -=Double Post Merge =-
    how can i convert a .lua file into an eboot.pbp if possible?

    It is pretty obvious that if you want your character to move left, right, up, or down and make it look like it is actually walking/running/jumping/etc. you need multiple frames to make this happen.

    Also, why would you need to convert a .lua file into an Eboot? Simply bundle it with a LuaPlayer if you wish it to run by itself.

  10. #9190
    Points: 1.864, Level: 25
    Level completed: 64%, Points required for next Level: 36
    Overall activity: 0%
    Achievements:
    First 1000 Experience Points

    Registriert seit
    Aug 2008
    Beiträge
    8
    Points
    1.864
    Level
    25
    Downloads
    0
    Uploads
    0

    Standard

    how do i get the analog stick to work?

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

    Code:
    pad:analogX()
    pad:analogY()
    Here http://www.evilmana.com/tutorials/codebase/analog.php

  12. #9192
    Seven Year Vet. BOW DOWN.
    Points: 14.794, Level: 78
    Level completed: 86%, Points required for next Level: 56
    Overall activity: 0%

    Registriert seit
    Dec 2005
    Ort
    Manchester, UK
    Beiträge
    2.240
    Points
    14.794
    Level
    78
    My Mood
    Cheerful
    Downloads
    1
    Uploads
    0

    Standard

    Uhh, hi guys, me again. I've hit another little snag in the game I'm making. The problem being with music. I know that using luaplayer v0.16 this has no MP3 support or anything like that, that I can only use MIDI files, thats not a problem. The problem is, the game is rather large; and whilst music runs fine in the menu, it just lags like hell in game. Apart from trying to optimize my code and using the collect garbage function, what else could I do to try and speed it up a little?

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

    Code efficiently?

    Also Is it the Main Song e.g Always or Mostly played?

  14. #9194
    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

    ok, Are you using a state system?? if not get one it will help make your code run faster, also, how wany different.lua files do you have that have a while true do loop in them??? you should be able to narrow your entire game down to only one or 2 while true do loops. You have any questions about what I've said then P.M. me or ask on this thread.

  15. #9195
    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

    PSProgrammer, none of what you just said will have a damn thing to do with how fast the game runs. A state system is actually slower than other methods and having several different lua files allows memory to be conserved by only loading what's needed.

    -Only blit images when you NEED TO
    -Don't use fonts
    -Any image that does not move around, blit it to the background so it is blitted with the background
    -Store lots of stuff in variables rather than recalculating it constantly
    -If you're using a bullet system with sin/cos, make a sin/cos cache table so that it doesnt have to recalc sin/cos each time you need it but instead simply accesses the value in the table

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

    state systems are useful for menus, you can have the main game in a seperate lua file, and credits that are usually small inside one of the states for the menu, levels of the game can be in different lua files, aslong as the layout of the game is made correctly so that each level is loaded into the game rather than swapped to.

    i would add more but i cba.
    ------ 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).

  17. #9197
    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

    Saying you would add more but cba is like saying Ok I am done now but I want you to know I could be more helpful but I am too busy to help you more than I already have.

  18. #9198
    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 TurtlesPwn Beitrag anzeigen
    Saying you would add more but cba is like saying Ok I am done now but I want you to know I could be more helpful but I am too busy to help you more than I already have.
    that is true, if you need any more help you can hit me up on msn.
    ------ 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. #9199
    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

    Question

    Is it possible to rotate text in Lua? if so how would I do it?
    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]

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

    print the text to an Image.createEmpty() and then rotate the image, it would be much easier and the only way i can think of.
    ------ 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).

  21. #9201
    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

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

    Question Timer Help

    I want an image to blit for three seconds so I made this function

    Code:
    function  rotateload()
    
    screen:blit(0,0,rotatebg)
    
    counter = Timer.new()
    currentTime = counter:time()
    
    screen:print(5,5,"Time: "..currentTime,white)
    
    if gamestate == "rotatescreen" and timerstart == "false" then
    counter:start()
    timerstart == "true"
    end
    
    if currentTime > 3000 then
    gamestate = "beggining"
    counter:reset(0)
    end
    end

    The timer just stays at 0 and the rest doesn't work.
    I don't understand why it won't work???
    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]

  23. #9203
    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's this If
    Code:
    if gamestate == "rotatescreen" and timerStart == false then
    Simple debugging should do the trick.
    Print The gamestate to the screen to see if the gamestate gets changed

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

    Zitat Zitat von dan369 Beitrag anzeigen
    It's this If
    Code:
    if gamestate == "rotatescreen" and timerStart == false then
    Simple debugging should do the trick.
    Print The gamestate to the screen to see if the gamestate gets changed
    No it doesn't change. But why would it change if the timer never reaches 3000???
    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]

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

    Code:
     
     IF THE GAMESTATE IS "rotatescreen" THEN DO SOMETHING END 
    If the gamestate doesn't change then Simple Logic: It will not work

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

    Zitat Zitat von dan369 Beitrag anzeigen
    Code:
     
     IF THE GAMESTATE IS "rotatescreen" THEN DO SOMETHING END 
    If the gamestate doesn't change then Simple Logic: It will not work
    This fuction only happens if the gamestate == "rotatescreen"
    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]

  27. #9207
    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

    Then That Makes sense.
    I'd do this
    Code:
    function QuickBlit()
    local counter = Timer.new()
    local counterTime = counter:time()
    
    counter:start()
    
    while counterTime < 3000 do
    
    screen:blit(0,0,bg)
         end
    end

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

    Zitat Zitat von dan369 Beitrag anzeigen
    Then That Makes sense.
    I'd do this
    Code:
    function QuickBlit()
    local counter = Timer.new()
    local counterTime = counter:time()
    
    counter:start()
    
    while counterTime < 3000 do
    
    screen:blit(0,0,bg)
         end
    end
    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]

  29. #9209
    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

    That would be more efficent, i'd say tidier aswell. Test it, tell me if it works?

  30. #9210
    QJ Gamer Silver
    Points: 10.263, Level: 67
    Level completed: 54%, Points required for next Level: 187
    Overall activity: 0%

    Registriert seit
    Jun 2006
    Ort
    UK
    Beiträge
    2.326
    Points
    10.263
    Level
    67
    Downloads
    0
    Uploads
    0

    Standard

    In both of your functions (dan and chrome), you are creating new timer objects in the function. That means every time you call the 'blit' function, it will create a timer object then using that new created timer, work out how much time has passed (and since it is in the same frame it will be 0).

    With that in mind, how should you fix this?


 

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

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