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

    Make a platform rise and fall?

    Scheduled Pinned Locked Moved Help and Support
    5 Posts 4 Posters 576 Views 2 Watching
    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.
    • ThisT Offline
      This
      last edited by

      I'm trying to achieve the following:
      I have a platform that I want to move up and down on the y-axis, like an elevator. I want it to move up and down based on a lever next to it. You pull the lever up, the platform goes up, you pull it down, the platform goes down. Any thoughts?

      ThisT 1 Reply Last reply Reply Quote 0
      • TutorialDoctorT Offline
        TutorialDoctor
        last edited by TutorialDoctor

        Use the Execute Sequence behavior. Connect it to two move behaviors. Each time the sequence is triggered the "next" behavior will run. I'll post a screenshot:
        0_1488383803488_IMG_1898.PNG

        1 Reply Last reply Reply Quote 0
        • ThisT Offline
          This @This
          last edited by

          Thanks for this! Is there a way to have the lever platform relationship even more closely tied? What I'm trying to do is: you drag the lever up 10, the platform raises 10. You drag it down 6, the platform lowers six.

          iTap DevelopmentI 1 Reply Last reply Reply Quote 0
          • MurtazaM Offline
            Murtaza Admin
            last edited by

            We also have a movable platform behaviour.
            This behaviour does some extra physics tricks so your player/object stays on the platform as it moves.

            1 Reply Last reply Reply Quote 0
            • iTap DevelopmentI Offline
              iTap Development @This
              last edited by

              @This you could subtract the "stopped touching" from the "started touching" and move the platform by the result.
              I don't remember for sure, but you probably want world coordinates turned on on the touch behaviors.

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