Page 10 of 12 FirstFirst ... 6789101112 LastLast
Results 91 to 100 of 116

Thread: Help with Lua

                  
   
  1. #91

  2. #92
    GP2X Coder/Moderator
    Join Date
    Jan 2006
    Posts
    1,678
    Rep Power
    87

    Default

    @shadowblind. Some of your colours haven't been created (eg green)

  3. #93

  4. #94
    DCEmu Old Pro BL4Z3D247's Avatar
    Join Date
    Jun 2006
    Location
    BL4Z3D 24/7 in CT
    Posts
    1,970
    Rep Power
    83

    Default

    no he means u didn't create a variable for the color green, is that right oh wise one(yaustar)?

  5. #95
    GP2X Coder/Moderator
    Join Date
    Jan 2006
    Posts
    1,678
    Rep Power
    87

    Default

    Put it this way, you have created the colour blue like:
    blue = Color.new(0, 255, 0)

    But green, red, yellow etc haven't. Have a guess how it is fixable.

    @Blaze: actually the variable has been created (where it is used) but not given a value hence it is crashing.

  6. #96
    DCEmu Old Pro BL4Z3D247's Avatar
    Join Date
    Jun 2006
    Location
    BL4Z3D 24/7 in CT
    Posts
    1,970
    Rep Power
    83

    Default

    thats why i called u the wise one

  7. #97

  8. #98

  9. #99
    DCEmu Old Pro BL4Z3D247's Avatar
    Join Date
    Jun 2006
    Location
    BL4Z3D 24/7 in CT
    Posts
    1,970
    Rep Power
    83

    Default

    hey yaustar is there a specific way to code the script, and are there techniques were can take to avoid annoying things in the end, like short cuts to make things a bit more easy on us?

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

    Default

    tables is a place to hold infor mation i suugesst yousing as mouch of these as you can like if youd want to hold your charcters informatioon in a table it would be like
    player{}
    player.x=60
    player.y=200
    player.health=100


    then you could call from that in your script such as to print your health you would do something like

    screenrint(100,100,player.health)

    or when you have to blit your charcter your charcters x and y wont be just variables like

    screen:blit(player.x,player.y,playerimage)

    you can youse that for anything and it saves you time hope that helps

    tables and functions make things a lil easyer^^

Page 10 of 12 FirstFirst ... 6789101112 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
  •