Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: shamo on January 19, 2018, 09:42:35 PM

Title: Identify cloned Game Objects [SOLVED]
Post by: shamo on January 19, 2018, 09:42:35 PM
Hi all, creating a game where I have a critter that you mouse over then squish! Got all that working but I want them to duplicate and increase. Did this via 'create copy' and works fine but how do I get mouse click to recognize them? As mouse click calls for a game object, it can't see the cloned ones.
If I just enable game Object copies, then one click kills em all.
Any suggestions?
Thanks
Title: Re: Identify cloned Game Objects
Post by: djaydino on January 20, 2018, 08:36:22 PM
Hi.
I am not sure how you have set this up, maybe you could use 'mouse pick' and use tag for the critters.

Can you show your fsms/states/actions (video or images) you can also pm them if you do not want to show in public.
Title: Re: Identify cloned Game Objects
Post by: shamo on January 21, 2018, 08:22:07 PM
Thanks for the reply and offer of help. I watched the excellent videos by Badseedgames and modified the idea he used of storing the 'enemy' as a Gameobject variable and creating health system for it. Then the player weapon subtracts hitpoints until the health is gone and 'enemy' dies. Calling the enemy from a prefab and cloning it seems to do the job!(and using a tag on enemy)