Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: rizwanash 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 ?
-
Anyone ???
-
Hi.
There is a "SmoothFollowObject" on the Ecosystem (https://hutonggames.fogbugz.com/default.asp?W1181) 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.
-
Hey,
I tried Searching this on EcoSystem but i could not find any action.
-
Hi.
Aw sorry it is actually in the build in action set
-
Hi, i suggest you use cinemachine package. And watch this:
This is 2d right?
-
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.
-
The Built in Smooth Follow Action does alot more weirdest things then simple get and set position. i have tried that as well.
-
anyone please ?
-
Hi,
Cinemachine is also for 3d :
https://www.youtube.com/watch?time_continue=34&v=X33t13gOBFw
-
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.
-
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.
-
Hi.
Could you share the code, maybe we can port it to an action