logo hyperPad Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Login

    Screen follow on grid

    Scheduled Pinned Locked Moved
    WIP and Showcase
    1
    1
    165
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Jack8680J
      Jack8680
      last edited by Jack8680

      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

      1 Reply Last reply Reply Quote 1
      • First post
        Last post