How To

Check for current charter in bg


TrashCan Games 2020-01-13 09:35

I want to check what charter a certain bg cell has

For example
I want to do something like
If cell.c x,y,char then code

Timo 2020-01-13 10:38

IF CELL.C(cx,cy)=char THEN ...

Remember that cx and cy are cell co-ordinates, not pixel co-ordinates.

TrashCan Games 2020-01-13 10:46

Thanks so much

was8bit 2020-01-13 19:15

Also, if you use BOTH backgrounds, you must preceed the checks with the background you want to check... (if you have not used a BG # command, you do not have to worry about this)

BG 1 sets you up to use the lowest, farthest away layer
BG 0 set you up to use the highest, closest layer

Log in to reply.