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
2 registered members (TipmyPip, AndrewAMD), 14,136 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
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