BVE WorldWide
Would you like to react to this message? Create an account in a few clicks or log in to continue.

"Fade in" in animated object

2 posters

Go down

"Fade in" in animated object Empty "Fade in" in animated object

Post by LXQt Sat Jan 25, 2020 4:49 pm

Hi, I was wondering if I can fade in an object
For example:
Code:
[Object]
States = empty.csv, HeadLight.csv
Position = 0,0,0
Statefunction = if[pluginstate[100] == 1, 1, 0]
I want it to switch from empty.csv to HeadLight.csv, but HeadLight.csv is going to have a fade in animation
Just wondering if it's possible?
Thanks! Very Happy

LXQt

Posts : 114
Join date : 2019-02-18
Location : Hong Kong

https://lx862.com

Back to top Go down

"Fade in" in animated object Empty Re: "Fade in" in animated object

Post by JW555 Sat Jan 25, 2020 10:22 pm

You're limited to state changes, texture shifts, rotation or translation for any animation. Depending on how many transitions of brightness you want between off and on you and over what time scale you could maybe use multiple states changing very quickly. Or make a texture with gradation from opaque (lamp off) to clear (lamp on) and shift it.

No idea what the coding would be to make that work though.

JW555

Posts : 9
Join date : 2019-10-30

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum