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.

DarkBASIC Discussion / Scale and Fade object

Author
Message
Squall alias Leon
21
Years of Service
User Offline
Joined: 31st Jul 2003
Location: United Kingdom
Posted: 2nd Mar 2004 09:46
Hi again. I'v tried everything i can think of and gone through the help files and my manual with a fine tooth comb, and canot find a way to let me make an object I've made (a cylinder) fade away as it gets bigger....Help please! The rest of my effect is great apart from this!

So far the scale object code is like this...
do
for grow# = 5 to 3000
scale object 1.grow#,grow#,grow#
sync
next gow#
sync
loop

I don't know where I'm too put the 'Fade Object 1,(currentvalue)-1' (at least I think that's what to put).

Also sometimes when i run it it will just ignore that line. Is this because my texture is set transparent on black parts? Or maybe it's not fading due to my other effects in the loop command...?
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 2nd Mar 2004 10:39
Well, you need to set the Ambient light, then fade the object slowly to 0.



Hope I Helped...
Jess.


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy
Squall alias Leon
21
Years of Service
User Offline
Joined: 31st Jul 2003
Location: United Kingdom
Posted: 2nd Mar 2004 12:52
Unfortunately not, just tried it and it don't wanna work. You see I've got a "BIG" For and Next command in my Do and Loop. I've got objects moving, rotating, texture scrolling and scaling all looping constantly. The fade was going to be for a blue flame that grows and then fades when it reaches the end. Guess it don't like me!

I'l keep re-arranging my code to see if I can get it to work, Thanks anyway and I'm open for suggestions everyone!
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 3rd Mar 2004 00:38
If you show me the source, I can integrate it for you

Jess.


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy

Login to post a reply

Server time is: 2025-05-23 09:23:42
Your offset time is: 2025-05-23 09:23:42