playMaker

Author Topic: Identify cloned Game Objects [SOLVED]  (Read 892 times)

shamo

  • Playmaker Newbie
  • *
  • Posts: 38
    • View Profile
Identify cloned Game Objects [SOLVED]
« on: January 19, 2018, 07: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
« Last Edit: January 21, 2018, 11:39:28 PM by djaydino »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 4616
    • View Profile
    • jinxtergames
Re: Identify cloned Game Objects
« Reply #1 on: January 20, 2018, 06: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.

shamo

  • Playmaker Newbie
  • *
  • Posts: 38
    • View Profile
Re: Identify cloned Game Objects
« Reply #2 on: January 21, 2018, 06: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)