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 / Having trouble with sprite collision (command)

Author
Message
HZence
23
Years of Service
User Offline
Joined: 9th Mar 2003
Location:
Posted: 10th Apr 2003 07:09


It won't work no matter what I do to it. I'm sure the sprite number is 11, I check this a billion times. Also, sprite 11 is overlapping all of the Rex frames. Any ideas?

Thanks [b])
indi
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 10th Apr 2003 08:02
pull apart this demo inside the code button

MrTAToad
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 10th Apr 2003 12:08 Edited at: 10th Apr 2003 12:09
I must admit I tend to find that

works better...

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
NETMAN007
23
Years of Service
User Offline
Joined: 16th Jan 2003
Location: Malta
Posted: 10th Apr 2003 14:35
What I would suggest put the sprite collision(11,rex)in a variable.
i.e. sprt_coll = sprite collission(11,rex)

Below is your code with my suggestion included.

for rex = 1 to 8
sprt_coll = sprite collission(11,rex)
If sprt_col > 0
Center Text 200, 200, "COLLISION!"
endif
next rex

HZence
23
Years of Service
User Offline
Joined: 9th Mar 2003
Location:
Posted: 10th Apr 2003 23:45
Gargh!

Nope, neither worked! Anyone care to see the whole project for themselves to see what I might be doing wrong???

MrTAToad
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 11th Apr 2003 13:24
If you ZIP/RAR it up, you can e-mail it me (include everything though!)

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
Raven Vegeta
23
Years of Service
User Offline
Joined: 14th Dec 2002
Location: United Kingdom
Posted: 11th Apr 2003 13:28


Watashi wa Eletronic Arts de shigoto o shimasu!

Login to post a reply

Server time is: 2026-07-10 19:46:21
Your offset time is: 2026-07-10 19:46:21