I use CollideImage to check for collisions between bullets and enemies in my game. Everything worked just fine.
Then I added music to the game. The game finds all OGG files in a subdirectory and loads them when the game starts up.
Suddenly, one of the weapons doesn't collide anymore. If I use another image to check the collisions with it works again.
I use the now non-collideable image to draw the weapon so I know the image loads. It's just that CollideImage doesn't detect any collisions with it anymore.
To summarize: Image loads and is drawn correctly. CollideImage doesn't return any collisions anymore. It did before I added the music.
This had me to believe it's some kind of memory bug. But it's just a whild guess. Anyone had a similar problem? How could I kill this bug and move on with the game?
Edit: Whoops. Should probably be in BlitzMax programming or something instead. :P
Then I added music to the game. The game finds all OGG files in a subdirectory and loads them when the game starts up.
Suddenly, one of the weapons doesn't collide anymore. If I use another image to check the collisions with it works again.
I use the now non-collideable image to draw the weapon so I know the image loads. It's just that CollideImage doesn't detect any collisions with it anymore.
To summarize: Image loads and is drawn correctly. CollideImage doesn't return any collisions anymore. It did before I added the music.
This had me to believe it's some kind of memory bug. But it's just a whild guess. Anyone had a similar problem? How could I kill this bug and move on with the game?
Edit: Whoops. Should probably be in BlitzMax programming or something instead. :P