Re: Damage indicator problem
I can't understand how to extract rar files - i don't think i have the program...
Re: Damage indicator problem
You need WinRAR, available for free at www.rarlabs.com
Re: Damage indicator problem
Works fine for me... One thing I noticed though is that you should move the Collision between x and y to the top of the event since it is a triggered condition.
Re: Damage indicator problem
Ah, what I mean is if two are created at the exact same time. It works fine with as many counters on screen as you want, just that if you hit two enemies at the exact same moment, only one will display the correct value.
Oh, and arranging them like you said totally screws things up, at least for the first one (the one with the "Only one action per loop" in it). If it works, I'm not going to mess with it, but I'll keep that in mind.
Re: Damage indicator problem
If the Collision between event is at the top it will become red and the event will run once for every collision that occurs. The "Only one action when event loops" condition will disable this behavior though, so try removing it if it doesn't work.
Re: Damage indicator problem
I dunno, when I try that, things get weird. Enemies can be hit multiple times per collision, or not at all. If the other one has the collision first (the one which checks if animations are NOT playing), then the controlled object freezes during its animation sometimes.
And I still have the problem of a counter being 0.
Re: Damage indicator problem
Animations freezing can be solved by adding an "Animations has finished" > "Restore animation sequence" event.
The reason the objects might get stuck together is because the objects will not be separated as long as the ship is being damaged. Add a new line that looks like:
* Collision between player and enemy
+ X Animation Loop is playing
> player Bounce
I just tried rearranging the conditions in the file you posted, and it works fine when you move the collision event to the top and remove the "Only one action when event loops" condition. Don't understand why it won't work for you...
2 Attachment(s)
Re: Damage indicator problem
Ok, I fixed up a few things and followed your advice as much as possible, but the event where it checks if two animations are not playing is still better with the collision check last. If it's first, the ship's animation locks up and movement is halted if it's being hurt and is in a position to be hurt again after the short invincibility.
The multiple hits thing was just due to the animation frames being of different sizes, so there were actually multiple collisions. But not taking damage when the two overlap is still a real problem...
Attached is my latest file, maybe there's something I changed to break it...
2 Attachment(s)
Re: Damage indicator problem
Modified your game a bit to fix the bugs. Hopefully you will understand what changes I made.