Screen follow on grid



  • To make the screen follow an object while moving on a grid, you can use the following behaviours:
    0_1493963623992_IMG_3225.PNG
    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:
    0_1493964142112_IMG_3224.PNG


Log in to reply
 

Looks like your connection to hyperPad Forum was lost, please wait while we try to reconnect.