Gamestudio Links
Zorro Links
Newest Posts
contractUpdate() is filtering if >2 rows
by mistery. 12/04/26 19:03
Removing outliers from files
by AndrewAMD. 12/02/26 15:26
SGT_FW
by Aku_Aku. 11/30/26 08:19
Experiences with cTrader
by JeyKey II. 11/27/26 09:04
make a complaint
by EW_bytes. 11/26/26 23:00
FXCM => AVA Trade Plugin???
by Martin_HH. 11/25/26 21:59
No connection to MT4
by Martin_HH. 11/23/26 06:38
MinMax function on History t6 file
by LucasJoshua. 11/21/26 14:28
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (mistery, AndrewAMD), 5,869 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EvanTJ, rht, MaliceTheMaker, Haitao_Ren, JimSimons
19250 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
some questions about Create the tire marks #142218
07/19/07 22:16
07/19/07 22:16
Joined: Jul 2007
Posts: 19
Brazil
J
Jack_Dracon Offline OP
Newbie
Jack_Dracon  Offline OP
Newbie
J

Joined: Jul 2007
Posts: 19
Brazil
hi game programmers,

I have some questions about generating particles. i'm making a racing game, where drift is an important part of gameplay. I'm using sprites to do the tire marks on the asphalt, but i'm not sure how to make all cars on the track generate them(assuming only the rear wheels are generating tire marks, for best perfomance).Is there any way to do it without coding the same thing to each car(that is, without repating the same code eight times)?

Also, I'm using ent_createlocal() to generate them, because the tire marks must be always laying on the ground. Thought particles seem appropriate, it wouldn't work for me because they're aways facing the camera. Is there a way to set the pan/tilt/roll on particles?

Any help would be appreciated.

Re: some questions about Create the tire marks [Re: Jack_Dracon] #142219
07/19/07 22:19
07/19/07 22:19
Joined: Mar 2006
Posts: 3,538
WA, Australia
J
JibbSmart Offline
Expert
JibbSmart  Offline
Expert
J

Joined: Mar 2006
Posts: 3,538
WA, Australia
1. you could write a function that handles the placing of tire marks when it is handed some paramaters. then in each car you just have to say "some_function(position,opacity);" or whatever name/parameters you make once in whatever different car actions you have.

2. ent_create's the best way because there is no way to set pan/tilt/roll on particles.

julz


Formerly known as JulzMighty.
I made KarBOOM!
Re: some questions about Create the tire marks [Re: JibbSmart] #142220
07/19/07 22:45
07/19/07 22:45
Joined: Jul 2007
Posts: 19
Brazil
J
Jack_Dracon Offline OP
Newbie
Jack_Dracon  Offline OP
Newbie
J

Joined: Jul 2007
Posts: 19
Brazil
thanks for the help JuizMghty


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