Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: Noah492 on July 06, 2015, 08:10:33 PM
-
I just got playmaker today and need a bit of help. I am using MOUSE OVER and MOUSE EXIT to switch between green and red colors on a cube. I want to be able to hold the mouse over it for 5 seconds without taking it off and it will turn to purple. Any idea how? Thanks!
-
You can use Wait action for this. It is really simple
-
Since you're just starting out, here's a little more detail. You have a start state for the cube. When someone mouses over it, you go to another state that makes it red. Now, on that state, you have two events. One is MOUSE EXIT which goes to a state that switches the color back to green. The other event is triggered by the Wait (5 seconds) Playmaker action and leads to another state that turns the cube purple.
-
Thanks that helped immensely!
-
Hi Noah, I really recommend checking out the samples that come with playmaker and the tutorials. It will really help get you started on getting around this plugin.
http://www.hutonggames.com/tutorials_game_design_with_playmaker.php
-
Hi Noah, I really recommend checking out the samples that come with playmaker and the tutorials. It will really help get you started on getting around this plugin.
http://www.hutonggames.com/tutorials_game_design_with_playmaker.php
FYI
The links on the main site are not the full source files, but you can get those here:
https://hutonggames.fogbugz.com/default.asp?W1182