TransparentSpriteColor...

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Skipsy.

Hello all,

Something strange : TransparentSpriteColor works fine if I use
a sprite_id as first parameter but not when I use '-1'. If I
understand, '-1' means that I want to change the default
transparent color for all the sprites. (?)

Any idea ???

Thks
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Pupil.

The -1 parameter is only for load time, i.e. you can't change the transparent color for all sprites you've previously loaded with this...for that you have to loop through all and change each separately.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by plouf.

it works fine here
have you insert it before loading ANY sprite ?

Christos
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Skipsy.

GREAT !!!

In my french documentation they don't mention that instruction
has to be inserted BEFORE any sprite load.

Thks all
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by fred.

I will update the doc, thanks for your input !

Fred - AlphaSND
Post Reply