Sprite management question, I'v fixed my sprite code, but why did it fix it, I was using spset gl,307 ang spset sp,1230. by switching the gl or sp to a number, it fixed the issue to allow multiple sprites to be seen, why is that?
Management ID is like your SSN or student ID. Without it the gov't or admins won't know who you are, especially if you had same-name twin brothers. SmileBasic also needs ID numbers to know which sprite to run which code on. Think about it, you can put multiple copies of the same sprite (twins) and give them different commands, but without the ID how would SB distinguish between the twins?
right, kinda get what your saying, but I'v seen others use different arrey names as management numbers, just wondering how they canceled out, as its discribed in the manual the gl or sp are concidered to be a management number, so just wondering how in samples they get away with it.
Now we're both confused. Where exactly did you see the manual say "GL and SP are also management numbers?" I searched the entire online manual and all I saw was management number being, well, a number (0-511). One can employ CALLIDX in their user DEF so smilebasic can look up the numbers automatically, but that's it. It still needs a number no matter what, as demonstrated by your bug fix.
It how it seemed to be exsplaned in the arrey section, but if you look at some peoples work, they use alot of (spset ty,6) the ty is now able to be used in a multitude of ways, cus when this is done they can use "ty" in other lines to modify its arrey, but I'm new at this, so I was probably 99.9% off on this anyways lol, anyways thank you.
Ah, they must have used either DEF or @LABEL, and CALLIDX and CALL SPRITE, then let ty=CALLIDX. It does allow them to use ty as management number array, but I'm also not experienced enough to master this kind of setup, so I'm sticking with pure numbers now.