i'm creating sth similiar to fight game, like old Street Fighter but I have a problem with "throwing" platform object around.
Here is target:
-> player is in collision with enemy platform,
-> player is thrown away with force, that is enemy's instance local variable,
->player flyes in arc a distance influenced by force,
->player gets his controls back.
Lurking this forum for houers resulted in those 2 aproches:
by using platform vector: dl.dropbox.com/s/vvzyy2y8rtsn766/platform_throw_behav.capx
and using math:
but none of themem works. If i use platform vector it looks ok but it stops im mid-way and just jumps up in result, instead of hitting distance floor or wall. Math gives me headakes everytime, so it can be not working due to lack of skill. Thanks for any help in advance.
PS: English gives me headakes too :P
Develop games in your browser. Powerful, performant & highly capable.
You'll have to disable the platform controls, lower the platform deceleration (so it doesn't stop mid air) and maybe increase the max speed temporarily while the player is flying through the air.