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 / another question guys sorry (update object w/ sparky dll)

Author
Message
devastation
19
Years of Service
User Offline
Joined: 11th Aug 2005
Location:
Posted: 12th Oct 2005 03:06 Edited at: 12th Oct 2005 03:46
I cant get my code to work. Here's the sample where I move the monster towards the person, then update it, then check for shooting and intersecting the monster with the gun's ray

note that object 12 is the gun and object 31 is my monster



if i set up the object w/ setupObjectDBC(31,0,1), it works fine, but with terrible frame rates. i only have the sleep in there to tell when it's working, and it doesn't work at all when I'm using updateObjectDBC(31)

what am I doing wrong? thanks in advance

verydevastating.com
blanky
20
Years of Service
User Offline
Joined: 3rd Aug 2004
Location: ./
Posted: 12th Oct 2005 17:21
Have you got a setupComplexObjectDBC command in the DBC version of the DLL?

I think that the 'setupComplexObject' command doesn't make the collision quite as polygon-perfect as setupObject, which should improve the frame rates.

I AM THE WOOKIE AND YOU WILL EAT OF MY COOKIES.
devastation
19
Years of Service
User Offline
Joined: 11th Aug 2005
Location:
Posted: 12th Oct 2005 20:59
thanks

I'm using setupObject now

I seem to have solved this. I entered setupobjectDBC(31,0,0) in the cli and it started working till i exited, so it's working w/ update object if I've used setupObject in loop, so i just added



probly wont speed up my program any but it gets it to work oddly.

verydevastating.com
blanky
20
Years of Service
User Offline
Joined: 3rd Aug 2004
Location: ./
Posted: 13th Oct 2005 09:28
I thought you only needed to setup the object once, and from then on you use updateObject if you've moved it or it's animated...

Login to post a reply

Server time is: 2025-05-22 13:21:53
Your offset time is: 2025-05-22 13:21:53