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 / Collision not working....

Author
Message
John H
Retired Moderator
21
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 1st Dec 2002 18:30
Well, I got one thing working, but how come the character doesnt stop when he hits the box? The sprite shows, but he goes right through it [the box].

set object collision on 1
set object collision to boxes 1
set object collision on 5

if object hit(1,5)>0 then show sprite 11
if object hit(5,1)>0 then show sprite 11
if object collision(1,5)>0 then show sprite 11
if object collision(5,1)>0 then show sprite 11



HELP!

RPGamer
Current - RPG: Eternal Destiny : Help Wanted!
Upcoming- MMOFPS- Paintball Game: HELP WANTED!
Http://halbrosproductions.netfirms.com
Paul J
21
Years of Service
User Offline
Joined: 6th Nov 2002
Location:
Posted: 1st Dec 2002 19:41
hey, I noticed it says 'set object collision to boxes'...

and boxes is a plural... how do you generalise things like this? so it is the same for all?

Thanks

John H
Retired Moderator
21
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 1st Dec 2002 20:42
What do you mean by your question?

AHH SOMEONE PLEASE HELP!!! Ugh, I just want my guy to stop when he hits the box. If this doesnt happen, this game will never be released........

Current - RPG: Eternal Destiny : Help Wanted!
Upcoming- MMOFPS- Paintball Game: HELP WANTED!
Http://halbrosproductions.netfirms.com
Bitmap
21
Years of Service
User Offline
Joined: 20th Oct 2002
Location: Latvia
Posted: 1st Dec 2002 20:48
is the game, by any chance, 2d? (judging by the sprites)

then it might not work because object collision is meant for 3d objects. you have to use sprite collision for sprites

thy boss
John H
Retired Moderator
21
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 1st Dec 2002 21:31
Nope, game is 3d. The sprite just displays the name of the building. I am trying to get it so my character can hit the building and NOT WALK RIGHT THROUGH IT!!! AHHH!! This is what you see here.
Object 1 is my character, and object 5 is the box. When object 1 hits object 5, the town name is displayed, but, object 1 (the character) moves right through the box! Help!!! AHHHH!

RPGamer

Current - RPG: Eternal Destiny : Help Wanted!
Upcoming- MMOFPS- Paintball Game: HELP WANTED!
Http://halbrosproductions.netfirms.com

Login to post a reply

Server time is: 2024-04-20 10:54:03
Your offset time is: 2024-04-20 10:54:03