Gamestudio Links
Zorro Links
Newest Posts
No connection to MT4
by JeyKey II. 10/28/26 23:03
Zorro plugin for Hyperliquid.xyz
by opm. 10/28/26 13:50
Icon "OP"
by JeyKey II. 10/27/26 07:03
ZorroGPT
by TipmyPip. 10/26/26 08:09
Chat Room for Zorro Programmers
by Haitao_Ren. 10/25/26 03:14
Trading Journey
by Haitao_Ren. 10/25/26 03:14
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (TipmyPip), 12,069 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
Haitao_Ren, JimSimons, julienp, julienper, KelleyAbbey
19247 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