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 Studio Chat / SetSpriteColor not working??

Author
Message
ICERGB
21
Years of Service
User Offline
Joined: 8th Nov 2002
Location: Canada
Posted: 15th Apr 2024 23:32 Edited at: 17th Apr 2024 05:02
The last question of this was in 2021
The first change seems to work and the second change does nothing?

I used to use SetSpriteColor with SetSpriteColor rgb(255,255,255),rgb(255,255,255),rgb(255,255,255) (was that in DarkbasicPro?)
Probably not practical for html

Anyways seems to me that this is kind of a primary goto for a quik special effect??

Edit: sorry is working
blink0k
Moderator
11
Years of Service
Recently Online
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 16th Apr 2024 02:06
SetSpriteColor(0xff, 0xff, 0xff, 0xff) // Red, Green, Blue, Alpha
https://www.appgamekit.com/documentation/Reference/Sprite/SetSpriteColor.htm
ICERGB
21
Years of Service
User Offline
Joined: 8th Nov 2002
Location: Canada
Posted: 16th Apr 2024 06:32 Edited at: 17th Apr 2024 05:01
please delete thread
blink0k
Moderator
11
Years of Service
Recently Online
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 16th Apr 2024 23:17
SetSpriteColor(mymapimages[4,t,i],255,0,0,0) will make the sprite invisible
ICERGB
21
Years of Service
User Offline
Joined: 8th Nov 2002
Location: Canada
Posted: 17th Apr 2024 04:43 Edited at: 17th Apr 2024 05:02
you are right

Mods please delete this thread

Login to post a reply

Server time is: 2024-05-02 01:01:47
Your offset time is: 2024-05-02 01:01:47