Playmaker Forum

Playmaker Help & Tips => Playmaker Help => Topic started by: Carmichael on November 09, 2017, 08:08:32 PM

Title: mouse look incompatible with ui [SOLVED]
Post by: Carmichael on November 09, 2017, 08:08:32 PM
hi, i'm trying to use mouse look to control my camera and ui to handle player movements and attack, it's a mobile game, but the problem is that whenever i put my finger on the joystick the mouse look takes effect and messes everything up, is there a way to stop mouse look from working when i touch my ui elements
Title: Re: mouse look incompatible with ui
Post by: jeanfabre on November 09, 2017, 11:20:37 PM
Hi,

 yes, you need to use the uGui full addon package from the ecosystem.

 you have an action called "IsPointerOverUiObject"

you can see it in action with the sample "uGuiCheckPointerIsOverUI" also available on the Ecosystem.

 Bye,

 Jean
Title: Re: mouse look incompatible with ui
Post by: Carmichael on November 10, 2017, 06:39:40 AM
hi jean, i'm trying to control my camera by moving the screen, but at the same time have my inputs respect my ui area.
Title: Re: mouse look incompatible with ui
Post by: djaydino on November 10, 2017, 02:09:07 PM
Hi,
Should the player be able to move the camera while holding a finger on the joystick?

If not maybe you can 'disable' the mouse look when joystick is active?

What actions are you using for the joystick?

Title: Re: mouse look incompatible with ui
Post by: Carmichael on November 10, 2017, 06:48:12 PM
Hi,
Should the player be able to move the camera while holding a finger on the joystick?

If not maybe you can 'disable' the mouse look when joystick is active?

What actions are you using for the joystick?

yes djaydino, i've added a different joystick for that and rotating the camera based on the player's input
Title: Re: mouse look incompatible with ui
Post by: djaydino on November 11, 2017, 11:25:41 AM
Hi,
What actions do you use to control the joysticks?
Title: Re: mouse look incompatible with ui
Post by: Carmichael on November 11, 2017, 12:22:35 PM
i've solved the issue thanks, it's get axis i use, i think in order to use the sreen i'll have to make use of a touch pad, but the joystick works fine