VECTOR Y = jump strength
vector x = ?
why am i asking?
i made a condition that if i land on top of an enemy set vector y -700 and it works perfectly.it jumps again over his head
i want to make a fallback movement for my hero when he gets struck by an enemy so i say
player on collision with enemy ----- set player vector x to -300 or 300 depending on which side he is in.
nothing happens!
even i input 1000000 or 10 same thing. my player get kicked back a few pixels from what i think is the force of collision between the two(enemy has platform behavior as well)
any ideas? thank you