[SOLVED] Bullets firing at the wrong point when wall jumping/sliding

What is the expected result

You press a button, the animation changes to the “firing” version of the animation you are currently in, then, the bullet object is created at the specific point named “Shot” that only exists in the “firing” version of the animation

What is the actual result

There’s a weird mistake happening when wall jumping/sliding (by the way, I’m using an extension for that)
When I ire a bullet while wall jumping/sliding, the bullet comes from the origin point (foot), not the “Shot” point. I can’t find a way to solve this problem, so any help would be appreciated!

Related screenshots

Bullet firing:

Wall jumping:

How the animation works:

Video of the problem in action:

(When wall jumping or wall sliding, the bullet comes from the foot of the player. However, if you fire a bullet again while in the “firing” version of the wall animations, the bullet comes from the right place)

Thanks for the detailed post. :+1:

the bullet object is created at the specific point named “Shot” that only exists in the “firing” version of the animation

I assume this is a problem of order of events. First, change the animation to wall sliding firing, then fire. Otherwise, the first bullet is shot before the right animation is used, and the custom point cannot be found, so the origin point is used.

1 Like