playMaker

Author Topic: Camera Follow Lock to one position.  (Read 4776 times)

rizwanash

  • Junior Playmaker
  • **
  • Posts: 61
Camera Follow Lock to one position.
« on: July 12, 2019, 07:32:38 AM »
Hey Guys,

I am trying to follow a camera on Players Movement. I am getting Players position and then Giving that PlayerY to Set Position to the Camera and It is working fine. I just want to lock this Movement to - Y Axis and When it Jumps Camera should not move. Only when it falls to a Platform. Is there anyway i can do something with the Float i am Getting to lock this Negative Vertical Position ?

rizwanash

  • Junior Playmaker
  • **
  • Posts: 61
Re: Camera Follow Lock to one position.
« Reply #1 on: July 13, 2019, 03:42:12 AM »
Anyone ???

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Camera Follow Lock to one position.
« Reply #2 on: July 13, 2019, 08:13:33 AM »
Hi.
There is a "SmoothFollowObject" on the Ecosystem you can set it to horizontal/Vertical/Both.

Set one for horizontal.

Then for vertical you need to trigger it for example when you land on the platform or for example when distance is larger than some value.
You will need to play around and see what works best.

rizwanash

  • Junior Playmaker
  • **
  • Posts: 61
Re: Camera Follow Lock to one position.
« Reply #3 on: July 13, 2019, 08:29:05 AM »
Hey,

I tried Searching this on EcoSystem but i could not find any action.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Camera Follow Lock to one position.
« Reply #4 on: July 13, 2019, 09:05:20 AM »
Hi.
Aw sorry it is actually in the build in action set

hoyoyo80

  • Full Member
  • ***
  • Posts: 136
Re: Camera Follow Lock to one position.
« Reply #5 on: July 13, 2019, 11:29:03 AM »
Hi, i suggest you use cinemachine package. And watch this:


This is 2d right?

rizwanash

  • Junior Playmaker
  • **
  • Posts: 61
Re: Camera Follow Lock to one position.
« Reply #6 on: July 13, 2019, 01:54:08 PM »
Hey @Hoyoyo80 No its not a 2D Game. Its a 3D Game. I am trying to use the Cinemachine but i could not get what i wanted.

rizwanash

  • Junior Playmaker
  • **
  • Posts: 61
Re: Camera Follow Lock to one position.
« Reply #7 on: July 13, 2019, 01:55:20 PM »
The Built in Smooth Follow Action does alot more weirdest things then simple get and set position. i have tried that as well.

rizwanash

  • Junior Playmaker
  • **
  • Posts: 61
Re: Camera Follow Lock to one position.
« Reply #8 on: July 14, 2019, 05:38:08 AM »
anyone please ?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Camera Follow Lock to one position.
« Reply #9 on: July 14, 2019, 07:10:07 AM »

Prestonh

  • Playmaker Newbie
  • *
  • Posts: 44
Re: Camera Follow Lock to one position.
« Reply #10 on: July 22, 2019, 03:12:48 AM »
Have you tried attaching a follow object to the player, like 3 meters back or what ever.   Then have the camera follow that object, and look at the player or another object ahead of the player.   Then camera follow with a finished distance set to like .1.  Then compare some distances and jump logic to set the camera follow back to state.

rizwanash

  • Junior Playmaker
  • **
  • Posts: 61
Re: Camera Follow Lock to one position.
« Reply #11 on: October 29, 2019, 05:11:24 PM »
Have you tried attaching a follow object to the player, like 3 meters back or what ever.   Then have the camera follow that object, and look at the player or another object ahead of the player.   Then camera follow with a finished distance set to like .1.  Then compare some distances and jump logic to set the camera follow back to state.

Hey man, Sorry for late, I was actually able to do it via C# Script. It was just attaching camera! it was easier in Coding so i went for it.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Camera Follow Lock to one position.
« Reply #12 on: October 30, 2019, 08:15:10 AM »
Hi.
Could you share the code, maybe we can port it to an action