playMaker

Author Topic: Emulate keyboard keys.  (Read 2330 times)

detomato

  • Playmaker Newbie
  • *
  • Posts: 36
Emulate keyboard keys.
« 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.

xhidnoda

  • Full Member
  • ***
  • Posts: 231
Re: Emulate keyboard keys.
« Reply #1 on: March 03, 2014, 08:13:04 PM »
You can use a "Mouse Pick Event" action to emulate the A and D keys.

detomato

  • Playmaker Newbie
  • *
  • Posts: 36
Re: Emulate keyboard keys.
« Reply #2 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.

xhidnoda

  • Full Member
  • ***
  • Posts: 231
Re: Emulate keyboard keys.
« Reply #3 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.