Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Lua Button Help

                  
   
  1. #1
    DCEmu Coder BrooksyX's Avatar
    Join Date
    Feb 2006
    Location
    Washington, U.S.
    Age
    35
    Posts
    1,336
    Rep Power
    88

    Default Lua Button Help

    does anyone know how to make it in lua that 2 buttons control one action.

    I tried doing:

    if pad:right() and if pad:cross() then

    but it just gave me an error.


  2. #2
    DCEmu Pro jman420's Avatar
    Join Date
    Oct 2005
    Location
    Colorado, USA
    Posts
    756
    Rep Power
    76

    Default

    maybe

    if pad:right() and pad:cross() then

    ??

  3. #3
    DCEmu Coder BrooksyX's Avatar
    Join Date
    Feb 2006
    Location
    Washington, U.S.
    Age
    35
    Posts
    1,336
    Rep Power
    88

    Default

    ill try it, thanks.


  4. #4

    Default

    if pad:right() or if pad:cross() then

    or

    if pad:right() or pad:cross() then

    try that

  5. #5
    DCEmu Coder BrooksyX's Avatar
    Join Date
    Feb 2006
    Location
    Washington, U.S.
    Age
    35
    Posts
    1,336
    Rep Power
    88

    Default

    Quote Originally Posted by Zion
    if pad:right() or if pad:cross() then

    or

    if pad:right() or pad:cross() then

    try that

    that would be if i want to buttons to do the same action but i want to make it so you have to press both buttons to do one action.


  6. #6
    DCEmu Coder BrooksyX's Avatar
    Join Date
    Feb 2006
    Location
    Washington, U.S.
    Age
    35
    Posts
    1,336
    Rep Power
    88

    Default

    Quote Originally Posted by jman420
    maybe

    if pad:right() and pad:cross() then

    ??
    yeah that worked thanks, now if i could just fix this stupid collison error.


  7. #7
    DCEmu Pro jman420's Avatar
    Join Date
    Oct 2005
    Location
    Colorado, USA
    Posts
    756
    Rep Power
    76

    Default

    lol, collision is annoying isnt it? :P

  8. #8
    DCEmu Coder BrooksyX's Avatar
    Join Date
    Feb 2006
    Location
    Washington, U.S.
    Age
    35
    Posts
    1,336
    Rep Power
    88

    Default

    yeah, thats why I gave up for now. =)


  9. #9
    DCEmu Pro jman420's Avatar
    Join Date
    Oct 2005
    Location
    Colorado, USA
    Posts
    756
    Rep Power
    76

    Default

    heh, I gave up on my E's project when I tried to add another 7 png's to blit, and it totaly bogged down my system..


    I did get the collision for the walls finnished though

  10. #10
    PSP User dtothabreezy's Avatar
    Join Date
    Apr 2006
    Location
    the netherer realm
    Posts
    308
    Rep Power
    71

    Default hey

    ill help on your collision im not working on my project just yet but i should realease it in a week

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

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