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

Bow Attack + Weapon Swap [ $70 ] #137

Open
c12hz opened this issue Dec 7, 2024 · 0 comments · May be fixed by #148
Open

Bow Attack + Weapon Swap [ $70 ] #137

c12hz opened this issue Dec 7, 2024 · 0 comments · May be fixed by #148
Assignees

Comments

@c12hz
Copy link
Contributor

c12hz commented Dec 7, 2024

A simple bow attack that can be used while moving (running or jumping/falling) without impacting velocity.

I already added bow attack animations and script files with 3 variants: BasicIdle (when standing still), BasicRun (when running), BasicJump (when jumping or falling).

Bow attacks shoot out arrows that fly straight forward horizontally, until they hit an enemy, at which point they deal damage and despawn.
When an arrow hits a wall collision it should also despawn.

I already added a placeholder arrow asset into the animations folder (currently it only has 1 frame so isn't animated).
The placeholder arrow already has the damage collider generating purple dots drawn on it, so it should automatically be generating its damage collider.

The bow attack should be triggered by the same key that is used for the regular sword attack, and it should share the skill icon and cooldown with it too.

The player should be able to decide if they use the bow or the sword using 'weapon swap'. There should be a key (let's say 'H') that swaps your weapon - if you press it once, then the key that normally triggered sword attacks starts triggering bow attacks, and then if you press it again it starts triggering sword attacks again, etc.

UPDATE:
The bow attack should also have a basic auto-aim. It should check if there are any targets in the direction that player is facing, and if not, check the opposite direction.
If there are enemies in the opposite direction, then the sprite should get flipped and the arrow should shoot in that direction instead (player can keep moving in the opposite direction while shooting). If there are no enemies in either direction, then the bow shoots in the direction where player is facing.

@c12hz c12hz changed the title Bow Attack Bow Attack [ $45 ] Dec 7, 2024
@c12hz c12hz changed the title Bow Attack [ $45 ] Bow Attack + Weapon Swap [ $45 ] Dec 7, 2024
@mnmaita mnmaita self-assigned this Dec 10, 2024
@mnmaita mnmaita linked a pull request Dec 19, 2024 that will close this issue
@c12hz c12hz changed the title Bow Attack + Weapon Swap [ $45 ] Bow Attack + Weapon Swap [ $70 ] Dec 19, 2024
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

Successfully merging a pull request may close this issue.

2 participants