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.

Author
Message
Daniel wright 2311
User Banned
Posted: 3rd Sep 2010 04:22
So i would like to change my sprites color value to blue when I select a item in game to show its been selected. is there a way? I am setting them to this

set sprite alpha 11,100

but would rather change the color of each selected item

thanks

Virtual Nomad
Moderator
20
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 3rd Sep 2010 04:29
check set sprite diffuse

Virtual Nomad @ California, USA . DBPro V7.5
AMD Phenomâ„¢ X4 9750 Quad-Core @ 2.4 GHz . 8 GB PC2-6400 RAM
ATI Radeon HD 3650 @ 512 MB . Vista Home Premium 64 Bit
Grog Grueslayer
Valued Member
21
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 3rd Sep 2010 04:30
Yes, you can use SET SPRITE DIFFUSE to change the color to whatever you want. But if you want it to be colored exactly the red, green, and blue content you want the sprite needs to be a white version of the sprite. Any color differences in the sprite will throw off the look after using SET SPRITE DIFFUSE.



In the above snip only the white box changes color properly.

Daniel wright 2311
User Banned
Posted: 3rd Sep 2010 04:30
i just saw this,lol, in the help, i missed it the first time i looked, thanks

Login to post a reply

Server time is: 2026-07-22 17:50:47
Your offset time is: 2026-07-22 17:50:47