I need a dash function to my code of top-down movement
#Dash function.
1 messages · Page 1 of 1 (latest)
o i remember doing this once
or being very confused trying to do this and someone helped me
where are you trying to dash to?
if statement or whatever:
var normalized_vector = (WhereYouWantToGoPosition-WhereYouArePosition).normalized()
dashing = true
if dashing = true:
velocity += normalized_vector*speed
im sure i messed up w/ delta but you get the idea