Playmaker Forum
PlayMaker Help & Tips => Android Help => Topic started by: shinodan on January 09, 2013, 04:48:26 AM
-
hey i put my game (actually 2) on my phone the other day and touching the screen seems to emulate a left mouse click even though i don't want it too, anyone know why?
-
hi,
It's the same on IOS, a touch is fired as a left mouse click as well.
bye,
Jean
-
Yes but is there any way to stop it or do i just have to remove the click actions?
-
Hi,
I am not sure how to disable that. Maybe you should report a bug using playmaker bug report to request a preference or something.
but basically, in what way it's an issue?
bye,
Jean
-
Well im working on a minigolf game, i was hoping i would just be able to make it for pc, then add actions for the game to respond to touch. but that wont be possible, ill mabye just have to start from scratch.
-
Hi,
I am still not sure how this is preventing you. on pc, any touch event are ignored, so you are safe to add two global event for the same state. I do that all the time. So on mobile, you fire your own "MY TOUCH CLICK" event that triggers the same state as "MOUSE UP" system event and done.
bye,
Jean
-
For example, im working on being able to touch the screen and have the arrow point in the direction of my finger, this doesnt work and i cant get rid of it because if i touch the screen at all, it just fires my golf ball in the direction its already in and its because its clicking when i touch the screen instead of aiming. on pc it was simple to just have a mouse look action on the arrow, then the mouse click charges the shot. but i dont want those methods to react to phone input.
-
Hi,
I see, simply insert a state once you receive the mouse up and check if you are on mobile, that's all.
you can use the action below to maintain a global flag for example.
http://hutonggames.com/playmakerforum/index.php?topic=403.0
bye,
Jean
-
Simplez! Thankyou!
-
I think a game may be a robot with wild animal, the robot would be self sufficient