Post the code, and attach one of your sprite graphics.
Without looking at either one it's hard to say why you "failed"
Here's an example...
+ Code SnippetSetVirtualResolution(480,480)
planetImg = LoadImage("planet.png")
planetSpr = CreateSprite(planetImg)
do
Sync()
if GetPointerReleased()
SetSpriteColor(planetSpr, random(0,255), random(0,255), random(0,255), 255)
endif
loop
and here's the image...

Notice that the color image is shaded with the new color.