Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Silver on July 18, 2013, 04:37:36 PM

Title: How to make Object Visible/Invisible based on Key Press and Hold?
Post by: Silver on July 18, 2013, 04:37:36 PM
Hi,
I'm trying to figure out how to make an object become visible and/or change its mesh when a button is pressed and held for 2 seconds.

When the button is released, the object should become invisible or return to its starting mesh.

Any suggestions on the best way to set this up with Playmaker?
Title: Re: How to make Object Visible/Invisible based on Key Press and Hold?
Post by: escpodgames on July 18, 2013, 07:06:58 PM
Setup 3 states, the first waits for the key to be pressed (moves to the second state if true) the second would have a wait for 2 seconds and a key up action - if the key is released it goes back to the first state. if the 2 seconds are up it moves to the third which has a key up action and activate game object actions for any model you want visible. when the key is up it moves to the first state (if you have set on exit ticked all should work fine)