Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - Palanysamy

Pages: [1]
« on: August 01, 2014, 03:25:54 AM »
Dear all,
I have no problems to send events from script but I am having a hard time to send event data to a FSM. With Playmaker is very easy with actions set event data and get event data, but I am unable to set a float data to this fsm from script.

The state is triggered by the public event ¨DEAL DAMAGE¨, inside this state I have the action Get Event Info, with the Get Float Data set to variable ¨damage¨. How can I set this ¨damage¨ variable value from a C# Script? I have been searching the whole forum but nothing helped me.

Code: [Select]
behavior.Fsm.EventData.FloatData = damage;

with that code I get Static member `HutongGames.PlayMaker.Fsm.EventData' cannot be accessed with an instance reference, qualify it with a type name instead.

How is this done please, there is nothing about it in the API reference.

Best Regards,

Playmaker Help / Keep GUI Object/Cursor in Screen [SOLVED]
« on: November 10, 2013, 10:35:01 AM »
Good afternoon!
I created a custom cursor that is controlled by Joystick. The problem I am facing is to keep the cursor inside the screen´s borders. So far I did:
I did:
Float clamp taking screen height and screen width into cursorheight and cursor width, and comibed these 2 floats in a new vector 3. But I dont know how to proceed from here (I tried vector3 clamp magnitude, but this just keeps the cursor in a circle)
Any hint, suggestion?

Hello people,
I am doing a game where you basically need to click on objects moving the cursor. It´s all done already for mouse, but I would like to do it for gamepad/joystick as well and I am unable to do it.
For Mouse, I use the following actions:
Get Mouse Y
Get Mouse X
Screen To World Point
Look at

For my attempts regarding gamepad/joystick, the same but instead of get mouse I use Get Axis (Horizontal and Vertical) but no good results?

How can I emulate mouse cursor with Joystick?

Pages: [1]