Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: pietwelve on September 29, 2017, 06:04:32 PM
-
Hi,
I'm working on a 2D game. (playmaker 1.8.4, Unity 5.6.1)
A Lot of my animated 2D(sprite)Game-Objects have to respond to MouseOver Event.
They all have a 2D-Collider-component set as trigger. And often have 2 FSM.
It works like a charm in Unity Editor, even if states with Mouse-Over transitions display a warning and I've got lots of "owner needs a collider or GUI Element to respond to mouse events!" errors in my error check window.
(all objects have 2D-Collider-component set as trigger though !)
Unfortunately it does not work in the Build.
- Any idea to have it work in Build ?
- how can i get rid of the ""owner needs a collider or GUI Element to respond to mouse events!" errors" ?
Thanks a lot :-)
-
Hi,
I tested 2D Object(sprite) with several colliders, but i can't repo the warning that you are getting.
can you show a video or images on this and from your fsm/states/action
Are you using Get/Set Property actions?
What platform are you building for?
-
Hi,
Thanks a lot for your answer :)
I do use Get/Set Property actions !
Building for PC/Mac Standalone
Please find screenshots attached (grouped in Photoshop)
I can create more images if you want !
-
ok it looks like i get rid of errors (red circles on playmaker states) and that it works in Build when i do that :
- add a "Mouse Pick 2d Event" Action in the state
- replace System transition/event (Mouse Over, Mouse Exit...) with custom ones, like "MousePick2DEvent_Over" for example.
I'll will add more details to this post if i understand new stuff about this problem ...
Or if it stops working ;-)
thanks
-
hi,
If you use get/set properties you need to use Linker Wizard (http://hutonggames.com/playmakerforum/index.php?topic=11126.0)
Else Get/Set properties tend to break when build.
But its better to find actions for it.
You can find many actions on the Ecosystem (https://hutonggames.fogbugz.com/default.asp?W1181)
I found the reason why it gives the errors,
it only checks 3d colliders.
but the errors wont harm.
it should work.
i will report to alex.
-
Hi,
Thanks for your input.
I will look into Linker Wizard and actions from the ecosystem :-)
bye
-
Hi,
If you can't find actions you can always request to make them or ask what you can use.
-
Hi,
Is everything sorted on this thread? Just making sure we are not missing a potential PlayMaker bug here.
Bye,
Jean
-
Hi Jean,
my post "september 30 4:47:51 PM" was the right solution for my problem.
hope it will help others...
bye