playMaker

Author Topic: How do you subscribe to script events?  (Read 1738 times)

FritsLyn

  • Full Member
  • ***
  • Posts: 191
How do you subscribe to script events?
« on: May 14, 2014, 08:09:18 AM »
I am not a programmer but a happy PlayMaker user.
I have many times managed to hook up with scripts via trial and error.

Now I'd like to use the Mobile CNJoystick (v 0.2) freely available in the Asset Store.

All is working, only I need to get the data out from this script.

They write in their documentation:

*****
..you can use CNJoystick's public Events:
JoystickMovedEvent is called each frame if player is currently tweaking the joystick. It has a Vector3 parameter which represents relative position of the joystick.
*****

*****
Just subscribe to these events from your script and you're good to go.
*****

Now, how the h.. do I 'subscribe to these events'?

Invoke Method does not show that event name on the list and Call method will not accept the name.

Any pointers are most welcome, thanks a bunch :)

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: How do you subscribe to script events?
« Reply #1 on: May 23, 2014, 01:00:09 AM »
Hi,

 Unfortunatly, this requires a proxy to receive this event and in turn send a PlayMaker event.

I made a task on trello to port this asset to PlayMaker. Please up vote to get it done.

https://trello.com/c/rbGB8GKX/76-mobile-cn-joystick


 Bye,

 jean