Game Development Community

Vehicle jump bonus

by CodingChris · in Torque Game Engine Advanced · 01/15/2008 (6:39 am) · 3 replies

Hi,
in many games like burnout flatout etc.. you get a bonus point for a big jump. How to do that in Torque???

#1
01/15/2008 (7:20 am)
Some ideas:

1. make triggers on the jumps and then count how long before they land on another trigger then give a bonus based on that number.

2. put triggers in the air and if they hit those they get a bonus.. more points for the higher triggers or ones that are further out.

3. you could use castray from the car to the ground after they jump to get a score based on that.

triggers seems the easiest to me.
#2
01/15/2008 (11:09 am)
Thanks for the ideas. I think it would be quite annoying to place trigger everywhere, where you can jump... I don't understand your number 3... What do you mean when you say castray, sorry but never heard that.
#3
01/26/2008 (6:57 pm)
Cast ray draws a line from one point to another... you can do a lot with it.

example: www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=13640

So I was thinking you might be able to cast a ray from the bottom of the car to the ground and when it returns a certain number you could add points....