Results 1 to 7 of 7

Thread: getting more than one shot on screen

                  
   
  1. #1
    DCEmu Newbie
    Join Date
    Nov 2005
    Posts
    41
    Rep Power
    0

    Question getting more than one shot on screen

    well my shooter is coming along slowly. I'm able to move my character, and it is able to shoot. but I'm only able to get one bullet on the screen at a time. I'm thinking I need to have the bullet function call itself and then use an array to hold all the bullets. I check www.lua.org for the syntax for arrays but can't seem to find anything. Is it possible to use arrays in lua?

  2. #2

    Default

    Strange you couldn't find it.

    Maybe this link will be helpfull for you.
    http://www.lua.org/manual/5.0/

    For an array you must define:
    table = {}
    and after table[1] = 2

  3. #3
    DCEmu Newbie
    Join Date
    Nov 2005
    Posts
    41
    Rep Power
    0

    Default

    Hehe, sorry for the confusion. What I meant was, I couldn't find anything about arrays. I've used the LUA manual before . I'll check it again about the table command. thanks for the info

  4. #4

    Default

    table is not a command it's just the name I've used for the array example.
    You can create an array called prout just by defining prout = {}.

  5. #5
    DCEmu Newbie
    Join Date
    Nov 2005
    Posts
    41
    Rep Power
    0

    Default

    Oh, now thats interesting. There is also a table command, thats what I thought you were talking about . OK Thanks for the info!

  6. #6
    Wii User shiftybill's Avatar
    Join Date
    Nov 2005
    Location
    The dark side of the moon
    Posts
    221
    Rep Power
    68

    Default

    can u pls post the code u use to make this work or at least dumb it down a bit for me so i understand

    i can only get 1 shot on screen as well

    i will be adding some enemies to mine very soon too

  7. #7

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
  •