[SOLVED] collideBitmapBitmap NOT WORKING!

Development

MicroGames

6 years ago


Hello,
I am currently finishing the Planet X game for the oiriginal gamebuino.
However something wierd starter to happen... The code I didn’t toutch over the night now acts crazy! collideBitmapBitmap detects collision with objects that don’t toutch themselves! But this code was working day ago! I’ve cleanded temp and it still acts crazy, any help?

Sorunome

NEW 6 years ago

Do you have some kind of code to show? As small as possible but with all the necessary bits ^.^

MicroGames

NEW 6 years ago

Yes, I will post the code tomorow.

MicroGames

NEW 6 years ago

Here you go. I've putted comments on  basicly everything so it is easier to understand.

I've sended the whole code so that you will be able t compile it :) 

The 'not quite working part' starts at line 909

link to the file: https://drive.google.com/open?id=0B8VPJywQuWBTZVhhWWYtQXFLNzg

Sorunome

NEW 6 years ago

First off, I am sorry it took so long to reply.

Second off.....that isn't exactly a minimal example. Your game seems very long and I unfortunatelly do not have the time to think into how every component of it is working to understand the issues you are having, however!

I tried your game on my Classic Gamebuino, and it didn't seem to have any issues, I could shoot enemies and collect things just fine!

Also, if i understand it correctly, you use gb.collideBitmapBitmap to check if you collect ammo etc. right? The thing is, usually gb.collideRectRect is more than enough for that, you don't really need sub-rectangle precision for collecting such things.

I hope I could still help you, and don't hesitate to ask more questions!

MicroGames

NEW 6 years ago

Ok, I know my code is complicated (that’s why I make games alone) and the problem with the collideBitmapBitmap was that when zombies will appear on the screen in the up-left corrner eaven if there weren’t any zombies here it will kill you (that was the gitch I was talking about)
But anyways tanks.

MicroGames

NEW 6 years ago

Hey I've fixed it? How well i changed the name of one function and it waorks as it was supposed to :D

So I wasn't a logic error but a compiler error

Sorunome

6 years ago

Heh maybe you sent me an old version then because it compiled fine?

Anyhow, I am glad you were able to fix it!

Sorunome

NEW 6 years ago

MicroGames MicroGames

Heh maybe you sent me an old version then because it compiled fine?

Anyhow, I am glad you were able to fix it!

MicroGames

NEW 6 years ago

The file I send You was the up-date for the time :)