Good Morning!. I'd like some help. I would like to know how do I clone the same image using the same addsprite and movesprite but for different objects. I know this technique is used in espace invaders and I would like an example that I can. because with this I can add more objects relieving the amount of sprites on the screen.,
taking advantage of the help. so I'm having problems in my ship game when I'm going to put the enemy events at each exchange of them I use the freesprite in the first situation to eliminate the sprites of the old enemies to be able to swap the second via loadtiles. the problem is that when running the second freesprites to clean the same does not add up and when I do the other input the screen hangs. What am I doing wrong?
Not a direct answer. But, I never use freesprite. I decide how many sprites I want to manage and then just use (and re-use) those. "Destroyed" invaders can be positioned off screen and/or have their sprite index set to some blank tiles.
Last Edit: Nov 12, 2018 10:45:00 GMT -5 by theloon
BEX have bugs with freesprite on real hardware system.
Those bugs have been addressed and explained how to avoid them.
It also doesn’t have a “bug on hardware”, it’s a bug when freeing the very first sprite you create, which will show in emulation. (Hint, don’t free the very first sprite with FreeSprite, use FreeAllSprites).
Yeah. I heard about BEX and FreeSprite. But, the main reason is my mind doesn't play well with adding and deleting things at runtime. I like to know exactly how many objects I have to worry about at all times. But, I understand that's just my style.