#for some reason my jump power increases after attacking state

13 messages · Page 1 of 1 (latest)

dapper trench
#

why are you using unhandled inputs as a funtion to trigger jump or attack?

edgy wasp
#

Is that not what it's for ? Gameplay input

cyan gazelle
#

Could you show the rest of the code? just from looking at it i dont see why jumping would be higher since you reset velocity to Vector2.ZERO after each attack 🤔

edgy wasp
cyan gazelle
#

You dont apply gravity in the attacking state.
You probably have the same jumping power, but in every other state you decelerate while jumping.

#

but it is only while you are in the state

edgy wasp
#

apply gravity isnt in specific state

cyan gazelle
#

are you supposed to be able to jump while attacking?

edgy wasp
#

no i have a flag for can_jump

cyan gazelle
#

i dont see it being used in the code other than the declaration

edgy wasp
#

yeah i havent added it yet, but even when apply it the jump still gets aplified after attack state

#

nevermind, it does fix it