Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: 4ppleseed on December 06, 2013, 11:15:56 AM
-
Hi, I want an On Touch Event Down to store the last touched object as a GameObject variable – no problems, so far.
Then when you let go, On Touch Event UP I want it to NULL out the GameObject variable.
How do I set a Global GameObject variable to nothing/Null/empty?
Thanks.
-
Hack solution: Create another new Gameobject which you save into that variable, and then destroy it.
-
Use the set gameobject action but don't enter a gameobject :)
-
Use the set gameobject action but don't enter a gameobject :)
this
undefined = null
-
Use the set gameobject action but don't enter a gameobject :)
Ahhhhh... that's so simple I couldn't see it. Thanks!
-
Can anyone tell me why this isn't working?
The object is null so it should end up in state 4 not 5.
I'm getting the information from a hash table.
-
Hi,
can you try this action instead?
http://hutonggames.com/playmakerforum/index.php?topic=5653.msg27225#msg27225
Bye,
Jean