playMaker

Author Topic: Virtual control touch events & PlayMaker integration  (Read 1383 times)

scr33ner

  • Playmaker Newbie
  • *
  • Posts: 13
Virtual control touch events & PlayMaker integration
« on: February 13, 2015, 01:54:02 PM »
Invoice: 301768444

Hi all,

I'm using Virtual Control Suite for my touch control (generic not using nGUI).

I set up 3 inputs, an analog stick, jump & attack buttons. These are all empty gameObjects with GUItextures.

VCS character animator/controller is handling character movements walk/run & jump.

I'd like to use PlayMaker to handle everything else starting with the attack.

The following is my implementation of the attack button with Playmaker.

The initial state waits for input from player. (Attachment 1)

Touch begin clones the prefab for attack. (Attachment 2)

Touch end finishes does nothing. (Attachment 3 I ended up using a separate script to destroy the clone)

The problems I'm running into is that input from other controllers other than the attack, instantiates a clone (like touching the joystick/jump button).

Another problem I'm running into is the animation not playing even though the FSM points to the character & its corresponding animation sequence.

What can I do to fix these?

Please help, and thanks in advance-
Mark