playMaker

Author Topic: Newbie question about jumping basketballer  (Read 1344 times)

laiktail

  • Playmaker Newbie
  • *
  • Posts: 2
Newbie question about jumping basketballer
« on: December 18, 2014, 10:01:54 PM »
Hey all, I had these two questions which I've been struggling with (I'm a first timer); how would you go about them?

1. I have a basketball player that I want to make jump. However, I want to make him jump in whichever direction is the direction of his head (e.g. if he's at a 45 degree angle, the force will propel him in the direction defined by a vector between his body and his head). How do I do this? Solved! Hooray!

2. I've attached a collider (invisible) at the bottom of his feet, for the reason that I want him only to be able to jump when there is something in that collider (e.g. he can only jump when the collider is touching the ground). How do you work with bool values so that a state (jumping) can be activated only when the bool is true (in this case, Collision Stay)?

I'd really appreciate it if you could help. :)

« Last Edit: December 18, 2014, 11:11:05 PM by laiktail »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Newbie question about jumping basketballer
« Reply #1 on: December 19, 2014, 08:05:27 PM »
you can use trigger event

check this tutorial series
in part 2 you can find what you need