I’m trying to make a function that will spawn two identical sprites on two identical tiles.
This is the code:
On the tile map I have two copies of the tile, and I want the same two sprites to spawn on both of those tiles, but every time I refresh my game it does something different. Sometimes the sprite is on one of the tiles, and other times there is a copy of the sprite on both of the tiles.
Could someone help me figure out how to make the game consistently place two copies of the sprite on the two identical tiles? The tiles are right at the start of the level.
Here’s the game:
Thanks.