Hello, i'm trying to make a puzzle where in a plane, parts of an object need to be assemble in a format, much like broken parts or a normal table puzzle. I wanted the player to be able to move the parts in 2 axis, i couldn't use tracks (for all i know), so i made a normal drag object, made it only to be dragged on a plane and contains the rotations, the first problem was that i needed to check it's position, which i solved by writing a custom action, but now i need the actionList to run when the player let go of the object, yet i couldn't find a way to do it, someone can help me? and another doubt: There is anyway to put 2 tracks in one drag object so it moves in 2 axis ?
Comments
To run an ActionList when letting go, you can use a custom event to hook into the OnDropMoveable event - see the "Interaction scripting" chapter of the Manual.
A sample script: http://pasteall.org/823639/csharp
Replace "ActionList" with "ActionListAsset" if you want to run an asset file.