More
See all Show me
This is an expansion on vimeo.com/1384642, I added a couple features. Zooming and transparency were pretty easy. The Sprite class has a method for those and it's real straightforward.

Adding the animation frames was a little trickier. You don't actually specify separate frames, but one large sprite image (there's a name for that isn't there?) and tell it how big each block is. The class then divides the sprite map up and assigns each frame a number left to right top to bottom. I just used NextFrame and PrevFrame here, but you can also jump to frames or set NextFrame and PrevFrame to not go sequentially like 0 2 1 3 0 2 1 3... instead of 0 1 2 3 0 1 2 3

The "making everything go away" I'm looking into for putting a menu together out of this. Basically if you don't draw the LayerManager (the container for all the sprites and whatnot) it doesn't show up, and if you stop making calls to it when you're not drawing it (which I didn't do) it should just sit idly in memory until you're ready for it again.
Credits
Tags
  • Kyle McDonald 2 months ago
    One step closer to "Play Tony's Roman Ocarina -- The Video Game".
  •  
This conversation is missing your voice. Take five seconds to join Vimeo or log in.

Sponsored by:

Statistics
  •  
    plays
    likes
    comments
  • Total
    plays 31
    plays 0
    plays 1
  • Oct 6th
    plays 0
    plays 0
    plays 0
  • Oct 5th
    plays 0
    plays 0
    plays 0
  • Oct 4th
    plays 0
    plays 0
    plays 0
  • Oct 3rd
    plays 0
    plays 0
    plays 0
  • Oct 2nd
    plays 0
    plays 0
    plays 0
  • Oct 1st
    plays 0
    plays 0
    plays 0
  • Sep 30th
    plays 0
    plays 0
    plays 0
  • Sep 29th
    plays 0
    plays 0
    plays 0
Previous Week

See referrers
Downloads
Please join Vimeo or log in to download the original file. It only takes a few seconds.