Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark Physics & Dark A.I. & Dark Dynamix / How to have random phy set emitter end color

Author
Message
Random color object
15
Years of Service
User Offline
Joined: 14th Aug 2008
Location: Montreal Canada
Posted: 26th Sep 2008 16:19
I try this but it dose not work.


-Win XP SP3 -P4 3go/Ge Force 9600 GT driver 177.92
PhysX 08.09.04
DBP + Dark A.I. + Dark Physics + Easy Rotate + enhancement + Sprite Packe
BiggAdd
Retired Moderator
19
Years of Service
User Offline
Joined: 6th Aug 2004
Location: != null
Posted: 26th Sep 2008 17:44 Edited at: 26th Sep 2008 17:44
Because the RGB commands are meant to be put separately in the command.

phy set emitter end color ID, red, green, blue

Random color object
15
Years of Service
User Offline
Joined: 14th Aug 2008
Location: Montreal Canada
Posted: 26th Sep 2008 19:43
ok then red=rnd(255), green=rnd(255) ok. I was trying by that model.



-Win XP SP3 -P4 3go/Ge Force 9600 GT driver 177.92
PhysX 08.09.04
DBP + Dark A.I. + Dark Physics + Easy Rotate + enhancement + Sprite Packe
Random color object
15
Years of Service
User Offline
Joined: 14th Aug 2008
Location: Montreal Canada
Posted: 26th Sep 2008 21:31 Edited at: 26th Sep 2008 22:33
Sorry for the double post
Thanks, I place the variable red=rnd(255)...

I want to make a change every 10 sec. Here is my codes so far, got some flahings.

Note: the fire.png can be found in the Dark Physic project folder
ProjectsDark PhysicsInformation
if you have the latest version of DP.

Thanks





-Win XP SP3 -P4 3go/Ge Force 9600 GT driver 178.13
PhysX 08.09.04
DBP + Dark A.I. + Dark Physics + Easy Rotate + enhancement + Sprite Packe
BillR
21
Years of Service
User Offline
Joined: 19th Mar 2003
Location: United States
Posted: 8th Nov 2008 20:12
Hi Random color object

Your timer code was setting the emitter color every time in the loop

here is some changed code, I set the timer to 1000 to see the change more frequently.

Login to post a reply

Server time is: 2024-04-30 18:27:18
Your offset time is: 2024-04-30 18:27:18