Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 18,495 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
need advise for implementing this in my car game #360987
02/28/11 14:23
02/28/11 14:23
Joined: Aug 2008
Posts: 81
J
jpxtreme Offline OP
Junior Member
jpxtreme  Offline OP
Junior Member
J

Joined: Aug 2008
Posts: 81
Hello. I'm making a car driving simulation game. I just would like to ask for an advise or idea. How do I know if the player is driving the wrong road? If it is, then it will cause the player a violation.

Please give me an idea or way how to achieve this. I've tried to use events but I don't know the logic to do this.

Re: need advise for implementing this in my car game [Re: jpxtreme] #361053
02/28/11 20:12
02/28/11 20:12
Joined: Jan 2010
Posts: 150
iran - tehran
F
flatron Offline
Member
flatron  Offline
Member
F

Joined: Jan 2010
Posts: 150
iran - tehran
you can have a path along road and in a while check angle between car and next node in path.

Re: need advise for implementing this in my car game [Re: flatron] #361070
02/28/11 21:20
02/28/11 21:20
Joined: May 2009
Posts: 1,816
at my pc (duh)
darkinferno Offline
Serious User
darkinferno  Offline
Serious User

Joined: May 2009
Posts: 1,816
at my pc (duh)
i'm not sure but i think you could also store the direction of each road in a skill, maybe an angle, like:

my.DriveDirection = 0

then when the player vehicle is driving on it, you could do something like:

if(playerVehicle.pan>my.DriveDirection+20 || playerVehicle.pan<my.DriveDirection-20)
error("YOUR DRIVING THE WRONG DIRECTION");

just an idea.. idk if it helps


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1