Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Programming and Scripting
How to change color more smoothly?

rolevix
Registered User
Quote
2017-04-03 14:05:04

Hello!
I want make Day-Night Cycle in my game, but i want use my colors and if i make js functions like "ccbSetSceneNodeProperty(rootNode, 'FogColor', somecolor" it change color instantly... that is ugly...
I need to change my day color to night color smoothly, for example blue change to dark-gray for 10 sec.

I dont know JS, and i cant use default behavior, cause that color does not fit!
Maybe somebody have plugin to set fog, ambient and backgroud colors, like (from "color1" to "color2" for "time ms")?




rolevix
Registered User
Quote
2017-04-06 07:25:50

Anybody?


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Interna?ional" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact