1
Programming Questions / Re: Timelines and Boss Fights Help
« on: January 06, 2015, 02:23:34 PM »
I donīt know wether you put this in the create event or the step event but it cannot work either way.
If you put this in the create event, the health gets set to 6 at the beginning and the boss checks if his health is at 5 at the same time.
After that, he will never check his health again.
If you put this in the step event, the boss sets his health to 6 the whole battle long and you practically cannot do any damage to him.
To make your code work you would have to put the first 2 blocks into the create event and the rest into the step event.
You also need to add another variable so that the boss would not repeat setting the new timeline when he is at 5 health.
I hope this helps.
If necessary I can post an example for you.
If you put this in the create event, the health gets set to 6 at the beginning and the boss checks if his health is at 5 at the same time.
After that, he will never check his health again.
If you put this in the step event, the boss sets his health to 6 the whole battle long and you practically cannot do any damage to him.
To make your code work you would have to put the first 2 blocks into the create event and the rest into the step event.
You also need to add another variable so that the boss would not repeat setting the new timeline when he is at 5 health.
I hope this helps.
If necessary I can post an example for you.