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.

AppGameKit Classic Chat / setSpriteColor wrong?

Author
Message
Indicium
15
Years of Service
User Offline
Joined: 26th May 2008
Location:
Posted: 4th Jan 2012 23:20
Hi, just downloaded the trial. I\'m not sure if I\'m just misinterpreting the effect that these commands should have, but are the commands setSpriteColorRed and setSpriteColorGreen mixed up?

Indicium
15
Years of Service
User Offline
Joined: 26th May 2008
Location:
Posted: 4th Jan 2012 23:25
Also, just so I don't clog up the board with threads, is there a way to set the backdrop color?

xCept
21
Years of Service
User Offline
Joined: 15th Dec 2002
Location:
Posted: 5th Jan 2012 04:28
1.) No, nothing is wrong with those commands. Say you have a purely white sprite, the following examples will change its color:



You may find it easier and more efficient to use setSpriteColor(r, g, b, a).



2.) You can change the backdrop color via the SetClearColor(r, g, b) command. If you want a solid red background, you would use: SetClearColor(255, 0, 0)
Indicium
15
Years of Service
User Offline
Joined: 26th May 2008
Location:
Posted: 5th Jan 2012 18:44
I guess I'm just expecting a different result than what I should then. I didn't notice that command somehow, thanks!

Brilliant, I was looking for SetBackdropColor or the likes, but I see they've went for a complete name change from darkbasic, thanks a lot mate.

Login to post a reply

Server time is: 2024-04-25 12:53:29
Your offset time is: 2024-04-25 12:53:29