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

    Send/receive message and overlays

    Scheduled Pinned Locked Moved
    Comments & Feedback
    2
    4
    615
    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.
    • T
      Thecheater887
      last edited by

      Do send and receive message work properly between overlays/scenes?

      Pause or unpaused. I need it done as unpause, but if I receive a message from an unpaused overlay into the loaded scene, it does’t seme to function properly.

      KamdroidK 1 Reply Last reply Reply Quote 0
      • KamdroidK
        Kamdroid @Thecheater887
        last edited by Kamdroid

        @thecheater887 I don't believe you can broadcast from scene to an overlay. Would be cool though.

        EDIT: Do you want Overlay to trigger something in Scene?

        You can have a global object with a behaviour bundle of actions you want to be executed in your scene, and just use a "behaviour on" in your overlay to run that.

        Note that the global objects don't normally show up in the scene, only when using a behaviour object selection.


        Regarding sending a message from scene to overlay:

        For now, there are 2 options:

        • Global scene object with attributes, if you don't need to permanently store the value (when your project gets closed)

        • File write and read, if you need to permanently store the value after your project gets closed.

        The global object with attributes is probably the fastest, but it does depend on your use case.

        In my opinion, they should allow us to pass in optional parameters to an overlay we open, since message box overlays are very common.

        1 Reply Last reply Reply Quote 0
        • T
          Thecheater887
          last edited by

          Scene
          Load > Started Touching > Open Overlay (pause: no) > (wait for overlay) > Recieve Message
          Overlay > Started Touching > Broadcast message

          KamdroidK 1 Reply Last reply Reply Quote 0
          • KamdroidK
            Kamdroid @Thecheater887
            last edited by

            @thecheater887 Put your "recieve message" actions in global UI object with a behaviour bundle and turn it off so it doesn't automatically execute.

            Then in your overlay, simply "behaviour on" the behaviour bundle you put in the global UI object.

            Such as:
            (In Overlay)
            0_1545730493136_B097B0A7-594C-4B06-BD62-926C2D7B253D.png

            (In Scene Global UI Object)
            0_1545730522401_22F14D0E-0737-4966-9225-FDCE8CADABAE.png

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