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

Thread: Need help with a New lua game

                  
   
  1. #1
    DCEmu Rookie fatcat04912's Avatar
    Join Date
    Sep 2006
    Posts
    151
    Rep Power
    67

    Default Need help with a New lua game

    Hello im in need of allot of help for my first lua game. Im trying to encode collision so a ball could jump into platforms . and i have tried about 30 different ways and i still cant figure it out What im trying to do is create blocks so the ball can jump on one to another to another,ect but everytime i try something goes wrong


    Here is the code for the in game
    Spoiler!



    Here is the code for the menu
    Spoiler!


    and here is my code for my Credits
    Spoiler!


    And here are the graphics you are going to need
    Spoiler!



    Please help me if you do you will get allot of credit given to you

  2. #2
    DCEmu Regular Anonymous D's Avatar
    Join Date
    Jul 2006
    Posts
    414
    Rep Power
    67

    Default

    im looking for you now...

    ok so bug 1 you havent defined black

    (black = Color.new(0,0,0) i think)

    and..
    screenrint(20,15, "How did you get a beta!",color[1])
    needs to be given a real colour e.g.
    screenrint(20,15, "How did you get a beta!",white)

    now it works. btw nice job looks interesting
    oh and remember i did that from the script in your rar file

  3. #3
    DCEmu Pro dangee's Avatar
    Join Date
    Feb 2007
    Posts
    531
    Rep Power
    66

    Default

    player.y = math.floor(player.gravity)

  4. #4
    DCEmu Rookie fatcat04912's Avatar
    Join Date
    Sep 2006
    Posts
    151
    Rep Power
    67

    Default

    Thanks anonymous D that cleared up 2 errors but how do i do collision with blocks because its getting old trying so many methods?

  5. #5
    DCEmu Rookie fatcat04912's Avatar
    Join Date
    Sep 2006
    Posts
    151
    Rep Power
    67

    Default

    Dangee i dont really understand what your say ing

  6. #6
    DCEmu Pro dangee's Avatar
    Join Date
    Feb 2007
    Posts
    531
    Rep Power
    66

    Default

    the screen coordinate args in blit() need to be
    integer , not float, so use
    player.y = math.floor(player.gravity)
    to force player.y to integer after the gravity logic ,
    or make an interesting bounce fx by changing the gravity increment from 0.5 to 1.0
    edit- IGNORE that , the float thng makes nil diff.

    ..but wheres the collision block?

  7. #7
    DCEmu Rookie fatcat04912's Avatar
    Join Date
    Sep 2006
    Posts
    151
    Rep Power
    67

    Default

    Sorry still nothing :-P Im a real noob at coding this is only my second day . And i have an odd bug with lua devkit that when i makefile my code it makes infinity folders with all the info and i cant delete them

  8. #8
    DCEmu Pro dangee's Avatar
    Join Date
    Feb 2007
    Posts
    531
    Rep Power
    66

    Default

    ok , anonD 's got the bugs sorted. player1 jumps nicely, what do you want to happen next..?

  9. #9
    DCEmu Rookie fatcat04912's Avatar
    Join Date
    Sep 2006
    Posts
    151
    Rep Power
    67

    Default

    Dangee Do you have aol add me fatcat0491 or yahoo add me [email protected]

  10. #10
    DCEmu Pro dangee's Avatar
    Join Date
    Feb 2007
    Posts
    531
    Rep Power
    66

    Default

    nope, been trying 1/2 hr to get my netmail working , but nil transmits

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
  •