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 Professional Discussion / Change the texture of a moving object within a DO LOOP

Author
Message
Fernecho
16
Years of Service
User Offline
Joined: 11th May 2010
Location: Trelle - Ourense ( Galiza - Spain )
Posted: 11th May 2010 17:41
Hello!

Well, that I have a small question as I have to do to make a moving object texture changes every x seconds, for example a cube that turns on itself, with all six sides with an image, and change from one image to another image after a certain time, enough to recognize the image. For example in the following code, what would you add to that possible?




Change the texture of the moving object, wait five seconds and change to another image, while moving.

Thanks.
Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 11th May 2010 18:43
Of course you can...



My signature is NOT a moderator plaything! Stop changing it!
Fernecho
16
Years of Service
User Offline
Joined: 11th May 2010
Location: Trelle - Ourense ( Galiza - Spain )
Posted: 11th May 2010 19:42
Well, now the routine works well, I can change the texture while rotating the cube, is perfect.

Thank you very much friend

and user.

Login to post a reply

Server time is: 2026-07-26 04:28:07
Your offset time is: 2026-07-26 04:28:07