I honesty don't know whats causing this and knowing my luck it's something ridiculously simple. I've decided to leave this for now and focus on other events.
Currently I've started on creating an inventory system from a list and have a mechanic where as the player takes damage, it will be displayed on a smiley face. The smiley has four emotions: Happy (yellow)-Displeased (green) -Sick (blue)-Dear death (red). This is the order of progression to represent how much health the player has remaining. I've added the smiley at the top of the screen below the counter or I could place it above the actors head. It's just a matter of working out how to set this up appropriately and I've been thinking that a custom event and trigger might be worth a try.
Update is so far this plan isn't working but I found a web page on creating a health system through the drawing events.
http://photongamedev.wordpress.com/stencyl-corner/quest-pals/quest-pals-tutorial-3-health-set-up-and-drawing/
I won't be using at present but it's still got some useful tips on other ways to go about it.
I also did some more searching and found a thread in the Stencyl forums:
http://community.stencyl.com/index.php?topic=7429.0
This is about someone trying to solve the issues on communication between actors and the threads author is attempting to do something with making an actor represent health and have a animation change every time a player loses health. This is what I'm trying to do with the health smiley face actor. I'm gonna read this as a reference to point me in the right direction.
Sunrisekingdom's event setup for a Mega man health bar.
My attempt at a actor health bar.







No comments:
Post a Comment