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.

Newcomers DBPro Corner / Problem with smoke effect

Author
Message
Cyberflame
21
Years of Service
User Offline
Joined: 4th Sep 2003
Location: Im not sure....
Posted: 29th May 2004 19:47 Edited at: 29th May 2004 19:49
This is suppose to put a smoke object at the position of the bullet every .1 second (time is global). It only updates like every half a second, and it also only uses 1 object. when there are actually 10.



This Code makes the smoke objects.


IF your rolling along the ocean in you jet ski and the wheels fall off. Do you still have enough pancakes to cover a doghouse?

Purple, because icecream has no bones.
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 31st May 2004 16:41
Quote: "if timer() - time < 10"


Where is the variable time set?

Variables created outside functions can't be access from within functions and vice versa - if you need to access the variable time from both in and outside of the function, look up the global command in the help (Pro only).

Two strings walk into a bar. I'll have a pint says the first$%ASLDJ09920D"$"$D. Excuse my friend says the second, he isn't null terminated.
Cyberflame
21
Years of Service
User Offline
Joined: 4th Sep 2003
Location: Im not sure....
Posted: 31st May 2004 20:15
Ive gotten it to work, and it was global i stated it up there too.
Quote: "This is suppose to put a smoke object at the position of the bullet every .1 second (time is global). It only updates like every half a second, and it also only uses 1 object. when there are actually 10.
"


IF your rolling along the ocean in you jet ski and the wheels fall off. Do you still have enough pancakes to cover a doghouse?

Purple, because icecream has no bones.
Lost in Thought
20
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 31st May 2004 22:20
I have never been able to get a .png to be transparent I always have to use .bmp. How did you do it? Or did you use alpha channels instead of using the colorkey?

"People don't fail ..... they stop trying." Specs. P4 2.8GHz 800 FSB | 512MB DDR333
GeForce FX 5200 AGP 256MB | Windows XP Pro Full
Cyberflame
21
Years of Service
User Offline
Joined: 4th Sep 2003
Location: Im not sure....
Posted: 1st Jun 2004 01:17 Edited at: 1st Jun 2004 01:17
Yeah, I used ghost object.
It ends up thet set object trancparency did nothing.

IF your rolling along the ocean in you jet ski and the wheels fall off. Do you still have enough pancakes to cover a doghouse?

Purple, because icecream has no bones.
Lost in Thought
20
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 1st Jun 2004 02:13
Ahh

"People don't fail ..... they stop trying." Specs. P4 2.8GHz 800 FSB | 512MB DDR333
GeForce FX 5200 AGP 256MB | Windows XP Pro Full

Login to post a reply

Server time is: 2024-11-26 19:15:28
Your offset time is: 2024-11-26 19:15:28