playMaker

Author Topic: 2d side scroller look at  (Read 1753 times)

IIKII

  • Full Member
  • ***
  • Posts: 137
  • Lonely developer
    • Patreon
2d side scroller look at
« on: October 29, 2019, 11:35:47 PM »
Hi I am trying to get my player to look at the position it's moving to in a 2d side scroller game but unexpectedly difficult to achieve that using the smooth look at actions. I think I tried all of the look at actions including the 2d ones but none of them are working correctly, they are rotating in weird directions.

Any 2d side scroller example scenes or instructions to correctly setup the player to look correctly in 2d?
Support me on Patreon for free adventure games and development insights - https://www.patreon.com/koexstudio

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: 2d side scroller look at
« Reply #1 on: October 30, 2019, 02:44:14 AM »
Hi,

 Can you show a video of what you are expecting? thanks.

Bye,

 Jean

IIKII

  • Full Member
  • ***
  • Posts: 137
  • Lonely developer
    • Patreon
Re: 2d side scroller look at
« Reply #2 on: November 02, 2019, 12:50:37 AM »
Hi,

 Can you show a video of what you are expecting? thanks.

Bye,

 Jean

Something like this -
I can switch the character's x scale by simply comparing the x position of the player and the mouse position but i am curious on how the Look At actions can achieve this? or maybe they are not?
Support me on Patreon for free adventure games and development insights - https://www.patreon.com/koexstudio

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: 2d side scroller look at
« Reply #3 on: November 04, 2019, 02:29:31 AM »
Hi,

 sorry, the video is too long, I am still not sure what you are after, can you point the time stamp? I tried to look for some smooth lookat transition in there but had no luck...

Bye,

 Jean