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 Discussion / Could this work?

Author
Message
Xenocythe
19
Years of Service
User Offline
Joined: 26th May 2005
Location: You Essay.
Posted: 21st Aug 2005 19:19
http://forum.thegamecreators.com/?m=forum_view&t=59335&b=10


You see that? Its great collision. I was wondering how you can do that with a X file object. most times, there are problems. But Would it be cheesy if you make the sphere a little bigger then your X object, position it with your X objects' coordinates in the loop and hide the sphere, then make collision with the sphere? That could work, right? But it would look kinda cheesy.

I have some questions:
1) Can you have collision with an X object character and an X object Building? If so, how would it work?

2) Can you have collision with a sphere object character and an X object Building? If so, how would it work?

IF you hve answers, they could also help other poeple.

Thanks.
Zotoaster
20
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 21st Aug 2005 19:33 Edited at: 21st Aug 2005 19:33
yeah, you can have collision, i once found a DBC version of sparky's collision dll, and it works fine, apart from sometimes, like when i jumo through the roof '¬_¬


Sven B
20
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 21st Aug 2005 20:47
The way I used it, is with STATIC collision BOXES.

To get collision with a sphere, you'll have to use this:

set object collision to polygons objnr
set object collision to spheres objnr
set object collision to boxes objnr

And then you can use:
object collision(objnr,0) to retrieve wich object is collided by objnr.

But you'll not be able to use static line of sight() without static collision boxes. (Since that's the only one that can collide with the ray.)

Immunity and Annihalation makes Immunihalation...

Login to post a reply

Server time is: 2025-05-22 13:12:38
Your offset time is: 2025-05-22 13:12:38