Hi yall!
I would like to ask what is the best method to make an enemy jump upon a platform when it is in front of the enemy?
Thanks yall
Hi yall!
I would like to ask what is the best method to make an enemy jump upon a platform when it is in front of the enemy?
Thanks yall
Radar(platform) - and - motion(jump, forward)
Thanks nicolas_A, but this way only allows the enemy to jump with a certain height , platforms can vary in different sizes.
have it detect when it reaches the end of a platform by using a ray cast, have it stop, and then shoot out a invisible ball with physics / random forces, have the ball on a Collison layer shared by the platform but not the actors,
if the ball lands on a platform, shoot enemy on same arc using same forces*
o.o oh this makes sense. but can we calculate the arc with other method too?
How about trial&error.
You let the enemy guess a certain vector. Then it uses that to jump. If it matches … fine.
if not … guess another one (or go away).