hi guys, as far as you know, are there any problems with collision masks?
I have melee weapons with dynamic masks that change with each animation.
what happens is that if the enemies are close to each other and are hit, enemies that theoretically shouldn’t be hit are also taken into consideration.
I imagine that the collision mask is not taken into account in the selected frames or that the grouped enemies collide create a sort of row and that the damage also reaches the enemy that should not be taken into account by the hit.
I tried to completely eliminate the collision mask by setting it all to 0 and leaving it active only in frames 6-7 but I get an error at the beginning of the scene blocking the game.
this is my event:
instead of creating the hit with the collision mask why don’t you try to create an object called HitBox or something similar to a custom point of this object in the conditions you already have? all you need is a trigger once for the creation of the object and if I’m not mistaken a sub event for its elimination, so the object is created and in an instant it is eliminated, and it is that object that will touch the enemies, so I did in my Sword Platformer.
(Comunque dagli eventi sembri Italiano o mi sbaglio?)
yes, but I didn’t mean to put a trigger once in his events, but to completely change the events to the ones I suggested. Because i had the same issue one year ago and i fixed in that way. That’s the screen of how i managed it
Thanks for sharing the screen shot - it’ll give @ilary27 a help on what you mean. Sometimes we need to many words and sentences to describe what can be done easily with an image.
Note that the trigger once is not required in that first event, because the animation is changed to “Attack”, so not all the conditions will be met in the next game frame. And it’s not necessary on the second event either - the set boolean action is probably quicker than the check whether the event has been previously triggered.
hi @Kruger yes I’m Italian I had already tried in the past to create a hitbox to manage the damage but I think the collision mask is more precise.
the strange thing is that previously everything worked correctly. @MrMen yes “damage” is a group containing several damage objects
here is a complete screen of the code