More experience bar help


(Nate ) #1

Hey guys! So I would like to pick your brains on something that I am not sure how to implement… Basically… I would like to have an experience bar on the side of the screen that is a vine that starts small and grows as the player gains experience. I am doing it fine with a box created with FlashPunk, my problem is, I would like it to be an imported image that grows but doesn’t just stretch. So it effectively looks like a growing vine…

Any thoughts?

Thanks guys!


(Zachary Lewis) #2

You might want to consider using a spritemap. Create a frame-based animation of a vine growing and then split it up. So, if you have 20 frames, increment one frame for each 5% experience the player earns. This would allow you to have a more dynamic bar than just stretching or masking.


(Nate ) #3

Okay, thanks Zach! I will attempt something based off of your reply! :smiley: