Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Sprite Collision Bug?? Or am I just missing the point?

Author
Message
cabbage
23
Years of Service
User Offline
Joined: 18th Jun 2003
Location: United Kingdom
Posted: 13th Jul 2003 04:31
Just been messing around with sprites and noticed a couple of odd things going on with SPRITE COLLISION.

I've included some code so you can see what I mean.

If you overlay one small sprite on top of another larger one then try to use x=sprite collision (sprite under mouse pointer,0). No matter what the you do, it only detects the big sprite underneath. Yet if you use sprite collision(sprite under mouse pointer,small sprite) it detects the collision. Its hard to explain well, try the code and youll see what I mean.

Also, if you take a sprite and rotate it, then try to detect a collision - no chance. It seems like DBP rotates the sprite but does not rotate the collision map for that sprite. In the example youll see what I mean if you move the mouse past the bottom right of the blue bar.

Are these just bugs or is there a simple way to work around them?

Login to post a reply

Server time is: 2026-07-21 12:49:15
Your offset time is: 2026-07-21 12:49:15