Jump to content

Changing textures


Slimwaffle
 Share

Recommended Posts

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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...