Guys, another question
How can I make the event execute only when the player’s life is equal to 1?
I believe this:
will only be true if there are animazioni in the scene which are not linked to Playerhitbox.
It does not determine that there are no animazioni linked to the Playerhitbox if there are none in the scene.
If amazioni can only exist and be linked to Playerhitbox, then check the number of amazioni in the scene:
Hi Joreon,
the “animazioni” object is only linked to the playerhitbox but even if I check that there is only one object in the scene it is recreated because if the player’s life is 1 and the “animazioni” object has finished its interpolation it is deleted and unlinked with the player, making it relink again
In that case, I would think you’d only need the last event without the parent event checking for amazioni. So it’s just checking that PlayerHp = 1 (with the trigger once).
this is my current event… i removed the parent event that checked if the “animazioni” object was linked to the player but the same thing happens.
the animation is created continuously when the life value is 1
Ah, so it creates it and when animazioni is deleted the event it triggered again? The I’d suggest you put a boolean variable on Playerhitbox and check it is false instead of the trigger once. In the actions set the variable to true.
Then when you want the animazioni to be created again (so once save.PlayerHp > 1), set the variable to false.
ok fine I’ll use a boolean variable
thanks again