playMaker

Author Topic: 2D character rotation (top down)  (Read 2619 times)

CoCo

  • Playmaker Newbie
  • *
  • Posts: 15
2D character rotation (top down)
« 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!

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: 2D character rotation (top down)
« Reply #1 on: June 16, 2017, 03:11:03 AM »
Hi,
Maybe this video can help you out :


CoCo

  • Playmaker Newbie
  • *
  • Posts: 15
Re: 2D character rotation (top down)
« Reply #2 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.


djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: 2D character rotation (top down)
« Reply #3 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)