Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: kapoke69 on January 07, 2018, 05:49:18 AM

Title: global event not work [SOLVED]
Post by: kapoke69 on January 07, 2018, 05:49:18 AM
i want to send global event"ADDSCORE"(set as global event already) to another object but the event not send to another object(gamemanager in my case), how can i fix? thx

1more question, how to increase gui text since i use "gui scale" but it not increase size at all :(
Title: Re: global event not work
Post by: djaydino on January 07, 2018, 09:01:42 AM
Hi.
Probably because they are perfabs :)

Check out this video :

Title: Re: global event not work
Post by: verybinary on January 08, 2018, 03:38:33 AM
I do see that its a global transition, but does it have a checkmark in the event list?
If so, did the event call get set up with gamemanager before gamemanager got prefabed? If you made it a prefab after, it might be trying to communicate with the wrong object.
If else, put a lock on the FSM and press play to make sure its not actually being called, but addscore isn't doing what you want it to for whatever reason.
Title: Re: global event not work
Post by: kapoke69 on January 08, 2018, 07:59:16 AM
I do see that its a global transition, but does it have a checkmark in the event list?
If so, did the event call get set up with gamemanager before gamemanager got prefabed? If you made it a prefab after, it might be trying to communicate with the wrong object.
If else, put a lock on the FSM and press play to make sure its not actually being called, but addscore isn't doing what you want it to for whatever reason.
i speak poor ENG, i can tell it have a checkmark in event list.
the rest i can't understand :( but thx anyway
Title: Re: global event not work
Post by: kapoke69 on January 08, 2018, 12:13:31 PM
Hi.
Probably because they are perfabs :)

Check out this video :



yes, i use prefab at "specific object" bcoz when i drag drop gameManager from the scene to "specific object" it appear as the picture i show below, and it has many option(which confuse me which one i want to use) that why  i  drag drop from prefab. can you tell me how to avoid that (i just want drag drop without option)
thx in advance
Title: Re: global event not work
Post by: djaydino on January 08, 2018, 05:01:48 PM
Hi.
If the action is in a prefab in your 'project window' you can not drop in scene objects from the 'Hierarchy window'.
Title: Re: global event not work
Post by: kapoke69 on January 10, 2018, 09:10:00 AM
Hi.
If the action is in a prefab in your 'project window' you can not drop in scene objects from the 'Hierarchy window'.
So, to prevent my problem is, do prefab after i dont need to  drag drop the object anymore, right?
Title: Re: global event not work
Post by: djaydino on January 10, 2018, 10:12:46 AM
Hi,
This will break the connection on the prefab created in your project folder.

This is a unity limitation that you can't communicate directly to objects in the project folder.

When you run the game, bring in your prefab and connect them like on the video.
Title: Re: global event not work
Post by: kapoke69 on January 14, 2018, 04:19:17 AM
Hi,
This will break the connection on the prefab created in your project folder.

This is a unity limitation that you can't communicate directly to objects in the project folder.

When you run the game, bring in your prefab and connect them like on the video.
thx a lot, dino.