playMaker

Author Topic: How to make Object Visible/Invisible based on Key Press and Hold?  (Read 3196 times)

Silver

  • Playmaker Newbie
  • *
  • Posts: 1
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?

escpodgames

  • Hero Member
  • *****
  • Posts: 687
    • Assets
Re: How to make Object Visible/Invisible based on Key Press and Hold?
« Reply #1 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)