Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: detomato on March 03, 2014, 12:50:53 PM

Title: Emulate keyboard keys.
Post by: detomato on March 03, 2014, 12:50:53 PM
I apologise for a seemingly a very noobs question. I searched for it but still clueless.

What I was looking for is how to emulate/simulate a keyboard's key when a gameobject is press/click? Cause now I have a book that can be flip with A and D on the keyboard, but I want to click on gameobject to simulate the A and D key.

Thanks for the time.
Title: Re: Emulate keyboard keys.
Post by: xhidnoda on March 03, 2014, 08:13:04 PM
You can use a "Mouse Pick Event" action to emulate the A and D keys.
Title: Re: Emulate keyboard keys.
Post by: detomato on March 04, 2014, 06:29:09 AM
You can use a "Mouse Pick Event" action to emulate the A and D keys.
Hi, can you elaborate more on it? How do I assign the keyboard's key to it?
Sorry for my ignorance. I have to learn through asking stupid question.
Title: Re: Emulate keyboard keys.
Post by: xhidnoda on March 04, 2014, 08:17:00 PM
If is the case...
You want to click the game object and then...flip right? So, you have to use a Mouse Pick Event, to send a event and flip your book.
Basically
1. Make 2 buttons (or game object). The object A and B.
2. Add a fsm to the A and B object and add a state with Mouse Pick Event. Then, is your choise what event you want to emulate the "flip" (Mouse over, donw, up, off).

Sorry my bad english...salutes from Paraguay.