Camera following character

Fill this out this info to make it easier for the community to help you! If you don’t fill out this information, your post may be deleted or removed.

What Wick Editor Version are you using?
1.19.4

Describe the Problem
What issues are you having in the Wick Editor?
camera following character
What have you tried so far?
Have you attempted anything et to fix the problem? Let us know!
i have tried vcaming the object, managing the vcam code and that’s about it.
Do you have a Wick Editor File that we can see? Optional*
Attach a .wick file if you have one in progress that can help us help you!
okay
minitanks4-7-2021_13-50-39.wick (24.6 KB)

1 Like

in SA, we used x and y triggers.
Just name the clip you want the vcam to follow, i’ll use “myClip” for example purposes.
Go to the vCam’s update script and type the following (replace myClip with player clip name)
this.x=myClip.x;
this.y=myClip.y;

Try putting this code anywhere into the player’s update script:

this.project.pan.x+=(-(this.x-project.width/2)-(this.project.pan.x))/2;
this.project.pan.y+=(-(this.y-project.height/2)-(this.project.pan.y))/2;

These two lines will make the screen follow the player

minitanks4-7-2021_14-43-13.wick (24.7 KB)

1 Like

I cannot thank you enough.

1 Like

If you want a smooth camera follow, I made one right here