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?

Author
Message
morfeus
23
Years of Service
User Offline
Joined: 1st Apr 2003
Location: Poland
Posted: 11th May 2003 23:30
grmmmblll... please check this source out and tell me if i messed something up... or is it 'just' a bug?



it seems that when sprite is controlled by mouse db doesn't detect collisions properly.
morfeus
23
Years of Service
User Offline
Joined: 1st Apr 2003
Location: Poland
Posted: 11th May 2003 23:49
waaaaah! it just doesn't detect sprite collisions at all!



now what?
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 12th May 2003 00:14
Um, you messed up. Pasting a sprite does not make the image it leaves behind a sprite.

MrTAToad
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 12th May 2003 00:14
Dont use PASTE SPRITE...

Just use SPRITE...

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
morfeus
23
Years of Service
User Offline
Joined: 1st Apr 2003
Location: Poland
Posted: 12th May 2003 00:22 Edited at: 12th May 2003 00:23
hah! seems like i'm a moron, after all. thankye kindly, gents.
morfeus
23
Years of Service
User Offline
Joined: 1st Apr 2003
Location: Poland
Posted: 12th May 2003 01:53
but, while we're at it - even if the transparency is on, the collision seems to be detected as if it wasn't; i remember it working perfectly in dbc, but here the collision is reported as soon as the other sprite overlaps the transparent area... which isn't right. i think.
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 12th May 2003 02:03
morfeus
23
Years of Service
User Offline
Joined: 1st Apr 2003
Location: Poland
Posted: 12th May 2003 02:08
yup, that's it. thanks, squire.
morfeus
23
Years of Service
User Offline
Joined: 1st Apr 2003
Location: Poland
Posted: 13th May 2003 03:15
aaaand one other thingy - i couldn't help but notice that using 'set sprite x,x,x' causes a huuuuge drop in overall performance, even if i set flags to default 1,1. could anyone please explain this phenomenon?
CloseToPerfect
23
Years of Service
User Offline
Joined: 20th Dec 2002
Location: United States
Posted: 13th May 2003 06:03
use
set sprite sprite_number, 0 , 1 or 0
the middle position is the backsave turn it off as it has to get a image of the back ground before pasteing the image and is really slow.
I find it alot better to put a cls in the loop and redraw everything.

CTP

Login to post a reply

Server time is: 2026-07-11 13:58:08
Your offset time is: 2026-07-11 13:58:08