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.

Newcomers DBPro Corner / Need help on sprite collisions.. Looked at tutorials but not working.

Author
Message
The Lone Programmer
21
Years of Service
User Offline
Joined: 29th Jan 2003
Location: California, USA
Posted: 24th Sep 2003 06:01
Ok I have looked at the tutorials that came with DBC.. Not helping very much..

Ok, what I am trying to figure out is how to get a collision going on with 2 DIFFERENT sprites... Keyword DIFFERENT. In the tutorial it just has a mirror example. Mirror doesnt help me unless I want to mirror something which I don't.

Can someone give me an example on what to do if I give 2 fake bitmaps/.bmp?

Can I get an example of a collision with pic.bmp and pic1.bmp

Thanks guys
Nicolas

Future Company Name = Blazing Fire
Current Website Name = Blazing Fire
Future Number is Eleventy
The Lone Programmer
21
Years of Service
User Offline
Joined: 29th Jan 2003
Location: California, USA
Posted: 25th Sep 2003 04:37
Can anyone help?

Future Company Name = Blazing Fire
Current Website Name = Blazing Fire
Future Number is Eleventy
Toilet Freak
21
Years of Service
User Offline
Joined: 16th Dec 2002
Location: Australia
Posted: 25th Sep 2003 09:28
try not to use the sprite collision in DBc(it can screw other things over)

do this if it's for menu's

if mousey()<200 and mousey()>140
if mouseclick()=1
stat#=1
endif
endif

if stat#=1
loop
endif

DreamersScars-Toiletfreak-
If you need a animated chara go here... It isn't that great but it'll do as a tester model thingy http://users.tpg.com.au/users/cnkyk8k2/index.html
The Lone Programmer
21
Years of Service
User Offline
Joined: 29th Jan 2003
Location: California, USA
Posted: 25th Sep 2003 17:41
Hmm... So I shouldn't use sprite collisions in classic.

The code that you gave, would it work with my bmps? Like say I have a fighter main character. Then I have a wondering bad guy. Kinda like zelda. Say I want to hit the guy with my sword, will it collide? Say I want the bad guy to hit me, Will he hit me?

Im not at that point in my game yet, but the purpse I posted this was so I can make a boarder to prevent the character from walking off the screen.

Thanks for your help, if you can get back to me it would be great.
Nicolas

Future Company Name = Blazing Fire
Current Website Name = Blazing Fire
Future Number is Eleventy

Login to post a reply

Server time is: 2024-09-21 01:14:10
Your offset time is: 2024-09-21 01:14:10