playMaker

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

HeathClose

  • Full Member
  • ***
  • Posts: 223
    • View Profile
On trigger enter 2d isn't working[SOLVED]
« on: April 07, 2017, 05: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, 12:00:05 AM by jeanfabre »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 12351
  • Official Playmaker Support
    • View Profile
Re: On trigger enter 2d isn't working
« Reply #1 on: April 09, 2017, 11:59:21 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

HeathClose

  • Full Member
  • ***
  • Posts: 223
    • View Profile
Re: On trigger enter 2d isn't working
« Reply #2 on: April 10, 2017, 02: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, 02:23:21 PM by HeathClose »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 12351
  • Official Playmaker Support
    • View Profile
Re: On trigger enter 2d isn't working[SOLVED]
« Reply #3 on: April 10, 2017, 10:24:34 PM »
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