Jump to content

Trying to understand animated sprites


joshcamas
 Share

Recommended Posts

Alright, so as a little background knowledge, I started my days as a 2D game developer with flixel, so I'm used to how they did things.

How do animated sprites/Movieclips/idk work? I'm wanting to have a sprite with several animations (walking left, walking right, etc), and yet cannot seem to find a way to pack these images and then play certain frames.

If possible, I would like to not use the json format at all, because I'm using a more manual way (exporting frames from blender and merging them in gimp).

Ayaaaa

Thanks :D

Link to comment
Share on other sites

For pixi, the MovieClip is just a list of textures to apply to itself as it inherits from Sprite. A Texture can just be a frame into a larger spritesheet.

So to use MovieClip just create an array of Texture objects and it plays that animation.

As far as animation management, creating animations naming them swapping between them, advanced timing. None of that is built into pixi. You'd have to build that yourself using the tools we give you in Sprites, Textures , et al.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...