playMaker

Author Topic: On trigger enter 2d isn't working[SOLVED]  (Read 6691 times)

HeathClose

  • Full Member
  • ***
  • Posts: 226
On trigger enter 2d isn't working[SOLVED]
« on: April 07, 2017, 08:43:13 PM »
this simple scene reproduces the issue I'm having with my game...

I can't get any 2d triggers to detect an enter...

all the triggers I set up prior to 1.8.4 are working...

anything new i try to make doesn't work

1.8.4
5.5.2f1

[MODERATION: Please don't redistribute the PlayMaker dlls :)]
« Last Edit: April 10, 2017, 03:00:05 AM by jeanfabre »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: On trigger enter 2d isn't working
« Reply #1 on: April 10, 2017, 02:59:21 AM »
Hi,

 Ok, you should never work with the 2d option checked in... your trigger is in -10 in z so looking front it seems to pass trhough it but if you look from above...

once you have them truly aligned it will be better but still not enough :)

 collisions and trigger MUST have rigidbodies, else it doesn't work. so add rb2d to your player and trigger, set the constraints etc so that they behave how you want it and triggers will be performed properly

also, please do not share PlayMaker dlls when you zip your project, prefer creating a package of your scene, and make sure you uncheck anything inside the PlayMaker folder and it will be safer.


Bye,

 Jean

HeathClose

  • Full Member
  • ***
  • Posts: 226
Re: On trigger enter 2d isn't working
« Reply #2 on: April 10, 2017, 05:17:58 PM »
Hi,

 Ok, you should never work with the 2d option checked in... your trigger is in -10 in z so looking front it seems to pass trhough it but if you look from above...

once you have them truly aligned it will be better but still not enough :)

 collisions and trigger MUST have rigidbodies, else it doesn't work. so add rb2d to your player and trigger, set the constraints etc so that they behave how you want it and triggers will be performed properly

also, please do not share PlayMaker dlls when you zip your project, prefer creating a package of your scene, and make sure you uncheck anything inside the PlayMaker folder and it will be safer.


Bye,

 Jean

woops... sorry about the playmaker dlls... i didn't realize...

are you saying never to work in 2d mode?  I find that odd... do you not use 2d mode for 2d games?

also thank you for the rigidbody tip... that got me working in 2d mode
« Last Edit: April 10, 2017, 05:23:21 PM by HeathClose »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: On trigger enter 2d isn't working[SOLVED]
« Reply #3 on: April 11, 2017, 01:24:34 AM »
Hi,

No worries about the dlls :)

yes, even when I build 2d games, I never use the 2d mode for the scene view, too many times I wasted time because of the z value, work with your game view for the final result in 2d, and work at a slight angle in the scene view. Then you won't be loosing time and energy with this kind of trouble :)

Bye,

 Jen