|
Post by Sprout on Sept 10, 2020 20:28:24 GMT
I stumbled upon something that seems unusual to me.
If you create a sprite in a label and try to remove it in another label, it doesn't remove it. I don't know if it doesn't remove it, or if it removes it and isn't updating.
Is this an intentional feature? Or is this because I am creating the sprite in an if statement?
Here is an example:
[label1] if a = 1 then
print #window, "addsprite duck duckBmp"
end if
[label2] if a = 0 then
print #window, "removesprite duck"
end if
This is a simpler version of what my actual code is. Let me know if you want to see the actual code. You can remove the sprite in the same label, obviously, like usual:
[label1] if a = 1 then
print #window, "addsprite duck duckBmp"
end if
if a = 0 then
print #window, "removesprite duck"
end if
|
|
|
Post by Stefan Pendl on Sept 10, 2020 22:10:56 GMT
Have you issued a DRAWSPRITES command after removing the sprite to update the display?
|
|
|
Post by Sprout on Sept 11, 2020 2:42:08 GMT
Oh. I totally forgot about drawsprites. Thanks!
|
|