Saving Object Name into variable and moving it using the variable name
-
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!
-
@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.
-
Yes, thank you!
I have determined that you can “find” an object by Name, but you must use the Object ID to manipulate it.