playMaker

Author Topic: Best way to check player is on plane  (Read 2075 times)

WitchTheWicked

  • Playmaker Newbie
  • *
  • Posts: 8
    • View Profile
Best way to check player is on plane
« on: December 30, 2011, 05:23:31 PM »
I have a world with 2 platforms, Platform A and Platform B.
What is the best way to check to see which platform the player is on?

Dev_Sebas

  • 1.2 Beta
  • Sr. Member
  • *
  • Posts: 398
    • View Profile
    • Blog
Re: Best way to check player is on plane
« Reply #1 on: December 31, 2011, 04:38:24 AM »
I think you should try with Controller is Grounded.
Bye

WitchTheWicked

  • Playmaker Newbie
  • *
  • Posts: 8
    • View Profile
Re: Best way to check player is on plane
« Reply #2 on: December 31, 2011, 04:28:52 PM »
Hi,
My character jumps.
Bye

Dev_Sebas

  • 1.2 Beta
  • Sr. Member
  • *
  • Posts: 398
    • View Profile
    • Blog
Re: Best way to check player is on plane
« Reply #3 on: December 31, 2011, 05:59:38 PM »
Good work dude
Bye

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15398
  • Official Playmaker Support
    • View Profile
Re: Best way to check player is on plane
« Reply #4 on: January 02, 2012, 01:38:46 AM »
Hi,

 ok, so if your question is actually: what is the best way to check on which platform is a player?, then you need to do the following ( one possible way, many other ways are possible)

hypothesis, platform A and platform B are in distinct physical spaces.

 create colliders for platform A and B. and have triggers on them, when the player enters platform A, you then know that your player is on A, when he leaves Y or enter B etc etc you keep track of where your player is like so.

them triggers can and should be places in strategic locations, for example if platform A can only be accessed from a door, simply have a collider near the door... Else you can alway have a larger collider surouding ALL platform A and another for ALL platform B. the implementation varies a lot depending on what is platform A and B of course.


 Do you have some experience with colliders? how to work with them within playmaker?

If you need a working example, tell me and I'll work something out for you so that you can study how this was implemented.

 Bye,

 Jean