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?
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?
Posted: 5th Jan 2012 4:28
1.) No, nothing is wrong with those commands. Say you have a purely white sprite, the following examples will change its color:

+ Code Snippet
    // Solid Red
    setSpriteColorRed(sprite, 255)
    setSpriteColorGreen(sprite, 0)
    setSpriteColorBlue(sprite, 0)

    // Solid Green
    setSpriteColorRed(sprite, 0)
    setSpriteColorGreen(sprite, 255)
    setSpriteColorBlue(sprite, 0)

    // Solid Blue
    setSpriteColorRed(sprite, 0)
    setSpriteColorGreen(sprite, 0)
    setSpriteColorBlue(sprite, 255)


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

+ Code Snippet
    // Yellow at 50% opacity
    setSpriteColor(sprite, 255, 255, 0, 128)


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)
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.