../
kernel
functions
add
all
apply_delta
assert
atan2
btn
btnp
camera
cd
char
chooser
circ
circfill
clip
cls
color
cos
count
cp
create_delta
create_gui
create_process
cursor
date
del
deli
env
error
exit
fetch
fetch_metadata
fget
fillp
foreach
fset
fstat
fullpath
get_clipboard
get_display
get_draw_target
get_spr
include
input
key
keyp
line
ls
map
max
memcpy
memmap
memset
menuitem
mget
mkdir
mouse
mouselock
mset
music
mv
note
on_event
open
oval
ovalfill
peek
peek2
peek4
peek8
peektext
pget
pid
pod
poke
poke2
poke4
poke8
printh
pset
pwd
readtext
rect
rectfill
rm
rrect
rrectfill
scoresub
send_message
set_clipboard
set_draw_target
set_spr
sfx
sin
socket
split
spr
sspr
stat
stop
store
store_metadata
sub
time
tokenoid
type
unmap
unpod
userdata
vec
vid
window
fget(n,f)
Overview
Retrieve the flag(s) of sprite n.
The initial state of flags 0..7 are settable in the sprite editor, so can be used to create custom sprite attributes.
Arguments
n: integer
The sprite index.
f: integer
The flag index 0..7
Returns
Flag f as a boolean of sprite n
fset(n)
Overview
Retrieve the flag bitfield of sprite n.
Arguments
n: integer
The sprite index.
Returns
The bitfield of flags of sprite n.
Examples
fset(2, 1 | 2 | 8) -- sets bits 0,1 and 3
fset(2, 4, true) -- sets bit 4
print(fget(2)) -- 27 (1 | 2 | 8 | 16)