playMaker

Author Topic: Collision 2D Event - detect on layer not only Tag?  (Read 2074 times)

kaniballo

  • Playmaker Newbie
  • *
  • Posts: 10
Collision 2D Event - detect on layer not only Tag?
« on: August 26, 2017, 08:01:29 AM »
Playmaker 1.8.5 - Unity 5.6.1.f1 - 2D Collision detection question,...
 Collision 2D Event (action) but on Layer not on Tag - like Get Next Overlap Circle(for example),that all - it's basic question but,... do you have idea guys how can be done?
 
I cheak all Actions -> Ecosystem -> Google -> forum here. I don't have scripting skills if necessary to modify default action (Collision 2D Event),... if can't be done the only alternative left is Get Next Overlap Circle?
 Tnx in advance and sorry if is stuped question - answered many time.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Collision 2D Event - detect on layer not only Tag?
« Reply #1 on: August 27, 2017, 10:01:07 AM »
Hi,
I will try to make an action for this tomorrow.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Collision 2D Event - detect on layer not only Tag?
« Reply #2 on: August 28, 2017, 01:02:53 AM »
Hi,
I made a custom action called "Collision Event Plus" you can get it on the Ecosystem.
I did not have much time to test, so can you let me know if it works :)

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Collision 2D Event - detect on layer not only Tag?
« Reply #3 on: August 28, 2017, 04:49:41 AM »
Hi,

 should it not be for 2D collisions instead?

 Bye,

 Jean

kaniballo

  • Playmaker Newbie
  • *
  • Posts: 10
Re: Collision 2D Event - detect on layer not only Tag?
« Reply #4 on: August 28, 2017, 07:14:26 AM »
Š¢hanks for the reply.
You, sir, are giving an example of a wonderful written action - a great set of possibilities.
 It would be good if all actions followed this form.
 Monsieur Jean accepted it as a positive criticism.  :)
 I took (Enable Collider 2D) as template,... and replaced a tag with a layer and voila,... it was - work.  :) Atached Action
 
I wish good health to both of you.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Collision 2D Event - detect on layer not only Tag?
« Reply #5 on: August 28, 2017, 11:44:38 AM »
Hi,
Oops i overlooked 2D :P

And i forgot the ability to set a target even, i will do that now and also for 2D,
i will let you know here when updated

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Collision 2D Event - detect on layer not only Tag?
« Reply #6 on: August 28, 2017, 01:12:01 PM »
Ok,
I placed a 2d and update the 3d

I will see to make similar actions for Triggers

You can bump if i did not add them by next week (or earlier if you need them)