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

    Saving Object Name into variable and moving it using the variable name

    Scheduled Pinned Locked Moved
    Help and Support
    3
    3
    217
    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.
    • hotmailH
      hotmail
      last edited by

      I have a graphic which is the number 4. I have named it 4. On a particular event I am Broadcasting the number 4 and Receiving it at a button object. When I click the button I am Getting Object, selecting By Name (in this case “4”) then attempting to Move To Point, using the received variable name and xPos and yPos variables. I cannot access the number Object by ANY method!

      RobinsonXR 1 Reply Last reply Reply Quote 1
      • RobinsonXR
        RobinsonX @hotmail
        last edited by

        @JonnyFlapjack Can I see your behaviors? Make sure you're getting the object ID of the "4" object and that it's being received on the button object.

        Also, it's worth noting that broadcasting will trigger all receive message behaviors with the same key. So you want to have different keys for sending and receiving data between objects.

        gmailG 1 Reply Last reply Reply Quote 0
        • gmailG
          gmail @RobinsonX
          last edited by

          @RobinsonX

          Yes, thank you!
          I have determined that you can “find” an object by Name, but you must use the Object ID to manipulate it.

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