Page 1 of 2 1 2 LastLast
Results 1 to 10 of 20

Thread: Pause, and proxies

  
  1. #1
    LordCthulu is offline Senior Member -Hacks Enthusiast
    Join Date
    Mar 2005
    Posts
    578
    Rep Power
    15

    Default

    (Proxies, couldn't think of a better name at the moment..)



    And also I was wondering how to do 2D barriers/proxies in Lua? I've seen them done in C, but can't really convert that over to Lua..
    Any suggestions/ideas are appreciated :D

    Oldest psp-hacks member ever.

  2. #2
    modsyn is offline -Hacks Guru
    Join Date
    Aug 2005
    Location
    Shinigami Kurosaki Ichigo!
    Posts
    2,475
    Rep Power
    17

    Default

    i'm not sure what you mean by proxies. but i can show you how i did my
    pause.

    Code:
    function pause()
      oPad = Controls.read()
      while true do
        nPad = Controls.read()
        if nPad:start() then
          if nPad~=oPad then
            break
          end
        end
        --pause, waiting for start
        oPad=nPad
      end
    end
    jMEnc Guide, jMEnc2 page - by the way, you smell nice

  3. #3
    LordCthulu is offline Senior Member -Hacks Enthusiast
    Join Date
    Mar 2005
    Posts
    578
    Rep Power
    15

    Default

    Edit: Hey it works.
    Thanks a bunch! :D
    Im actually using it for an intro before the game starts, but I called it pause.
    But thanks a lot :D
    Oldest psp-hacks member ever.

  4. #4
    modsyn is offline -Hacks Guru
    Join Date
    Aug 2005
    Location
    Shinigami Kurosaki Ichigo!
    Posts
    2,475
    Rep Power
    17

    Default

    Hm...that might work.
    Let me try :)
    it does work. lol (me being arrogant)
    jMEnc Guide, jMEnc2 page - by the way, you smell nice

  5. #5
    LordCthulu is offline Senior Member -Hacks Enthusiast
    Join Date
    Mar 2005
    Posts
    578
    Rep Power
    15

    Default

    Haha. I tried before with something similar to yours, but it didn't work.
    i think because I didnt do the
    if xpad ~= ypad then
    thing.
    Oldest psp-hacks member ever.

  6. #6
    modsyn is offline -Hacks Guru
    Join Date
    Aug 2005
    Location
    Shinigami Kurosaki Ichigo!
    Posts
    2,475
    Rep Power
    17

    Default

    that's a killer because without it, hitting start once is actually like hitting start 10 times. i ran into that early on.
    jMEnc Guide, jMEnc2 page - by the way, you smell nice

  7. #7
    LordCthulu is offline Senior Member -Hacks Enthusiast
    Join Date
    Mar 2005
    Posts
    578
    Rep Power
    15

    Default

    Haha yeah I learned that the hard way today. lol
    Oldest psp-hacks member ever.

  8. #8
    Master Inuyasha is offline -Hacks Neophyte
    Join Date
    Jul 2005
    Posts
    82
    Rep Power
    15

    Default

    i havent used the pause, but how do u make it so that when you pause, a pic saying puased comes up, then when u unpause, it goes off.

  9. #9
    LordCthulu is offline Senior Member -Hacks Enthusiast
    Join Date
    Mar 2005
    Posts
    578
    Rep Power
    15

    Default

    Heres an example:

    Code:
    pad = Controls.read()
    
    if pad:start() then
       while not pad:triangle() do
          screen:blit(0, 0, pause_image)
       end
    end
    that should work. im being harassed by people who want me on socom and on msn messenger so if yo uneed more help just pst
    Oldest psp-hacks member ever.

  10. #10
    Master Inuyasha is offline -Hacks Neophyte
    Join Date
    Jul 2005
    Posts
    82
    Rep Power
    15

    Default

    it doesnt work, all it does is not let me use any buttons!
    and what is the while not pad:triangle, i dont get it!

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •