Screen follow on grid
-
To make the screen follow an object while moving on a grid, you can use the following behaviours:
The chains under 'Add Values' and 'Add Values1' offset the position and then round it. You can change the offset and the screen size by changing the values in those two behaviour chains.
The two 'If' behaviours check whether the new rounded position is different from the one where it already is or is going, and if so the behaviour bundle calculates how far the screen will move and divides it by the speed, then moves to the new location with that duration.If you want a speed of 0 or you don't care about having a constant speed for the screen moving, you can remove some of the behaviours like this: