Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
|
Forum Index : Microcontroller and PC projects : Sprite Collition Error
Author | Message | ||||
LeoNicolas Guru Joined: 07/10/2020 Location: CanadaPosts: 479 |
Hello I'm having trouble to create a new sprite from inside a collision detection sub called by the collision interrupt. I don't know if it is a bug or a limitation on how the sprite's collision interrupt works. When I try to create a new sprite from inside the sub the SPRITE(C,0,id) function ends with the error "2 is invalid (valid is 1 to 0)" I'm uploading a test code. You can move the number 1 sprite using the arrow keys. The error happens when the sprite 1 collides with the sprite 2. t.bas.zip Thanks |
||||
Print this page |