[SOLVED] collideBitmapBitmap NOT WORKING!

Développement

MicroGames

il y a 7 ans


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 il y a 7 ans

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

MicroGames

NEW il y a 7 ans

Yes, I will post the code tomorow.

MicroGames

NEW il y a 7 ans

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 il y a 7 ans

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 il y a 7 ans

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 il y a 7 ans

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

il y a 7 ans

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 il y a 7 ans

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 il y a 7 ans

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