トピック
Brad GamerZim

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?

0そうだね
プレイ済み
返信[1]
親投稿
L. Lohadaa
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?
0そうだね
未プレイ
返信[2]
親投稿
Brad GamerZim
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.
0そうだね
プレイ済み
返信[3]
親投稿
L. Lohadaa
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.
0そうだね
未プレイ
返信[4]
親投稿
Brad GamerZim
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.
0そうだね
プレイ済み
返信[5]
親投稿
L. Lohadaa
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.
2そうだね
未プレイ