hippogamesunity / HeroEditor4DHub

10 stars 0 forks source link

Wrong attack direction when facing up #46

Open misuqian opened 1 year ago

misuqian commented 1 year ago

QuickStart.scene,When the character moves up, the attack direction is down

hippogamesunity commented 1 year ago

Hi, please provide more details on this issue. Yes, when the character moves up it can attack.

misuqian commented 1 year ago

@hippogamesunity Hello, I am currently using version 5.5 of the plugin.

In the QuickStart.scene, I've noticed an issue with the character's attack direction. When my character is facing upwards and I press the attack button, the weapon swing direction is downwards, which is the same as when the character is facing downwards to attack.

I would like the character's attack to swing the weapon upwards when facing up, for a more accurate and intuitive gameplay experience.

remib1994 commented 1 year ago

Yes, i agreed, i have the exact same problem. When you attack facing up he slash the ground. I put a screenshot on the hero-editor-4d discord channel.

hippogamesunity commented 1 year ago

Hello! I consider that a regular Slash is a sword movement from top to down, no matter in what direction. Anyway, you can easily adjust animations by yourself to fit your needs, as they are made with Unity. You can start with this article https://unity.com/solutions/what-is-2d-animation

techzilla commented 1 month ago

That is a ridiculous answer, the sword should not swing in the same direction, regardless of the direction of the character swinging it. The sword is behind and below the character when swung.

hippogamesunity commented 1 month ago

I'm not sure if it's possible to adjust animations as you want. It's not a 3D object. If some weapon sprite is large/long, it's possible that it will appear below the character. If you have any ideas how to improve, please tell here.

techzilla commented 1 month ago

The weapon will be below the character unless it's very short, it doesn't need to be particularly long. Using what exists now as an attack is also not functional for a 4d character who has a sword. An up-to-down slash just doesn't translate well to 4d. A horizontal slash translates much better to the medium, and would be more usable. If the animation is angled properly, a longer sword should be better.

hippogamesunity commented 1 month ago

Do you mean making Slash from the right to the left?

techzilla commented 1 month ago

Correct, with a very small angle to help the side views work.