PDA

View Full Version : need help


matteo.m
11-04-2006, 07:30 AM
how i can check if one sprite have the so_fixed option set?
I see that there is the function SpriteOptions(mysprite$)
but i have no clue how to use it .. for example, this is not working:
AddSpriteOption(s$, SO_TIMER | SO_CHECKCOLLIDE | SO_FIXED);
if (SpriteOptions(s$) == SO_FIXED )
ShowMessage("fixed");
end;

I know that i do the wrong test but i dont know witch way i should use to make the test to work.
So any help is greathly appreciated, Thankss

zehlein
11-04-2006, 07:51 AM
if (SpriteOptions(s$) & SO_FIXED)
...

should do the job

matteo.m
11-04-2006, 10:09 AM
:) thank you very much i'm going to try it

kornalius
11-04-2006, 02:22 PM
Zehlein was faster than me! :( Hehe.

matteo.m
11-04-2006, 09:08 PM
it works really fine, thanks :)