Rich Mellor writes: > OK, I have tried to create a null pointer. However, can anyone please > explain why the following code shows 2 pointers on screen: <> > Your thoughts/ideas would be much appreciated...
Two pointers?! I couldnt properly run the code, so I cant really say. However perhaps this "null sprite" definition may work better: rem Set up Null pointer restore BlankPtrAdd = alchp(32) for i = 0 TO 30 step 2: read word: poke_w BlankPtrAdd + i, word : data $0100, $0000 :rem .w form, time/adaption data $0001, $0001 :rem .w x size, y size data $0000, $0000 :rem .w x origin, y origin data 0, $000C :rem .l pointer to colour pattern data 0, $0008 :rem .l pointer to pattern mask data 0, $0000 :rem .l pointer to next definition : data $0000, $0000 :rem .w colour pattern data $0000, $0000 :rem .w pattern mask You shouldnt need to use REMPT before using this sprite. In an SBasic with the standard windows try: outl#0: cls rem Set up Null pointer here, as above .... sprs#1; BlankPtrAdd x% = -1: y% = -1: tv% = 13 rep rdpt#1; tv%, x%, y% print#0; tv%, x%, y% endrep Per
