playMaker
Home
Store
Showcase
Tutorials
Forums
Manual
Wiki
About Us
Playmaker Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Join our
Discord Channel
Home
Help
Search
Login
Register
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
(Moderator:
600
) »
Off track timer
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Off track timer (Read 1550 times)
ShazBang
Playmaker Newbie
Posts: 33
Off track timer
«
on:
June 02, 2016, 03:52:39 AM »
Hey, making a simple racing game for a project and I'm having some trouble adding a timer that counts down whenever the player's car leaves the track... once the timer hits zero then the player loses the game and has to restart.
How should I go about checking that the player has left the track? I've tried using triggers but they take a very long time to set up and my track is huge! I'm using EasyRoads3D for the track by the way. I have some ideas on doing the timer but I mainly need help the player leaving the track
Thanks
Logged
ShazBang
Playmaker Newbie
Posts: 33
Re: Off track timer
«
Reply #1 on:
June 02, 2016, 03:56:03 AM »
I've found that the EasyRoads road object has a collider built into it, but it isn't able to be a trigger unless I make the collider convex, which screws the road up completely... is there another way to create a trigger on the road object?
Logged
600
Moderator
Hero Member
Posts: 716
Re: Off track timer
«
Reply #2 on:
June 02, 2016, 04:00:56 AM »
Hello,
you could check ground layer for the road so if it's offroad for x seconds, it counts as off track.
Check it with grounded if wheel colliders or raycast from the car, like every second or so.
Logged
-
Car and Traffic
Playmaker assets
-
Flashing Lights: Police, Fire, EMS
[Steam]
-
YouTube
djaydino
Administrator
Hero Member
Posts: 7623
Re: Off track timer
«
Reply #3 on:
June 02, 2016, 05:04:34 AM »
Hi,
Maybe you can duplicate the collider and make that as trigger?
Logged
Join the PlayMaker Discord Channel!
Print
Pages: [
1
]
Go Up
« previous
next »
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
(Moderator:
600
) »
Off track timer