Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong attack direction when facing up #46

Open
misuqian opened this issue May 13, 2023 · 9 comments
Open

Wrong attack direction when facing up #46

misuqian opened this issue May 13, 2023 · 9 comments

Comments

@misuqian
Copy link

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

@misuqian misuqian changed the title Wront attack direction when facing up Wrong attack direction when facing up May 13, 2023
@hippogamesunity
Copy link
Owner

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

@misuqian
Copy link
Author

misuqian commented May 15, 2023

@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
Copy link

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
Copy link
Owner

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
Copy link

techzilla commented Aug 17, 2024

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
Copy link
Owner

hippogamesunity commented Aug 17, 2024

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
Copy link

techzilla commented Aug 18, 2024

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
Copy link
Owner

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

@techzilla
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants