Slimwaffle Posted March 16, 2015 Share Posted March 16, 2015 I am planning on writing some code for a project I am working on and before I start I was just wondering if its possible to have my code change a texture file after so many seconds have passed. Without posting actual code I was thinking along these lines. create sky items day, dawn, dusk and night. Get info from Skybox item, After so many seconds get dawn texture. Return dawn texture to skybox item. Rinse and repeat for full cycle using my own custom textures. Would this way of thinking be ok using the skybox already implemented in leadwerks or would I need to create a new skybox script? Or has anyone already done this that could give me some advice on how to achieve this? And could I do the same to a player character so that after so many seconds skin becomes sunburnt and clothes become dirty. Quote Link to comment Share on other sites More sharing options...
gamecreator Posted March 16, 2015 Share Posted March 16, 2015 I believe you can use the SetSkybox command whenever you'd like to change the skybox texture. http://www.leadwerks.com/werkspace/page/documentation/_/command-reference/camera/camerasetskybox-r824 Quote Link to comment Share on other sites More sharing options...
Slimwaffle Posted March 16, 2015 Author Share Posted March 16, 2015 thanks I'll try this out and let you know how I go. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.