Page 2 of 2 FirstFirst 12
Results 11 to 20 of 20

Thread: Updated [2006-07-03] - Lua Animation Sample code

                  
   
  1. #11

    Default

    thanks yaustar

  2. #12
    LUA Coder D0N's Avatar
    Join Date
    Jan 2006
    Posts
    863
    Rep Power
    79

    Default

    Nice sample yaustar!

  3. #13
    PSP User Apoklepz's Avatar
    Join Date
    Oct 2005
    Location
    Bottom of The Pit
    Posts
    1,542
    Rep Power
    80

    Default

    Hey Yaustar. Good job helping out with this! I'm sure a lot of people here will pick up from this nice example. Anyways, I took a look at it and put the standing animation sprites in place for you....they looked a bit off at first, but I fixed them. Hope this'll help.

  4. #14
    GP2X Coder/Moderator
    Join Date
    Jan 2006
    Posts
    1,678
    Rep Power
    88

    Default

    Cheers for that. Much appreciated.

  5. #15
    PSP User Apoklepz's Avatar
    Join Date
    Oct 2005
    Location
    Bottom of The Pit
    Posts
    1,542
    Rep Power
    80

    Default

    Hey no problem.... BTW, I think I got his jump sprites somewhere in my HD... I can get em set up for this example if you'd like to put the code in it. Just lemme know, K?

  6. #16
    GP2X Coder/Moderator
    Join Date
    Jan 2006
    Posts
    1,678
    Rep Power
    88

    Default

    Updated again.

  7. #17

    Default

    Very good work. I have yet to download it yet, but I don't understand how come he code is soo long for animation? Did you make it into a game almost?

  8. #18
    GP2X Coder/Moderator
    Join Date
    Jan 2006
    Posts
    1,678
    Rep Power
    88

    Default

    If you haven't downloaded it yet, how do you know the code is so long? . If you are takling about the time between updates then its because I was working on my other project (see GP2X section for Dance2x) and I felt I didn't need to update this snippet. Then I got bored :P

    As well as the sprite/animation system, there is some code to manage the different states that an object can be in (eg walking, standing, attacking). So there is a small finite state machine there to deal with that.

    I also have other little code snippets that you may like:
    http://www.dcemu.co.uk/vbulletin/showthread.php?t=28540
    http://www.dcemu.co.uk/vbulletin/showthread.php?t=29190

  9. #19

    Default

    well, by looking at the dl size ( I know that includes images, but it still would appear long)...

  10. #20
    GP2X Coder/Moderator
    Join Date
    Jan 2006
    Posts
    1,678
    Rep Power
    88

    Default

    Its about 300-400 lines of code including whitespaces and comments.

Page 2 of 2 FirstFirst 12

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
  •