Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: CoCo on June 15, 2017, 01:51:11 PM

Title: 2D character rotation (top down)
Post by: CoCo on June 15, 2017, 01:51:11 PM
hi all!

I'm trying to do simple top down character controller. No problem to have up/down/right/left control. But after many research on forum i' don't find my issue.

"the 2d rotation". I try with my first state "player rotation controller" with "press key down" and after on second states i'm trying "vector2 rotate toward", but it doesn't work. Probably i do wrong information in "vector  2 rotate towards".

I'm trying "key down" to after transform keyboard control on ps4 controller, and not mouse tracking ( might be more hard to develop).

For exemple it will be nice if i have control like hotline miami (classic top down shooter).

Thank You!
Title: Re: 2D character rotation (top down)
Post by: djaydino on June 16, 2017, 03:11:03 AM
Hi,
Maybe this video can help you out :

Title: Re: 2D character rotation (top down)
Post by: CoCo on June 16, 2017, 02:39:16 PM
Hi thank you djaydino.
I saw it, it's very interesting video, with character controller input (and not control with key down). But i have some problem also with rotation with this video. With asset 2d which going crazy with mouse picking fsm.

Title: Re: 2D character rotation (top down)
Post by: djaydino on June 17, 2017, 01:44:31 AM
Hi,
Can you give some more information of your setup (pictures/video showing the fsms/actions and the issue)