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 / Sparky's collision help.

Author
Message
Zeus
20
Years of Service
User Offline
Joined: 8th Jul 2006
Location: Atop Mount Olympus
Posted: 14th Dec 2010 17:16
I am trying to detect collision between a cube and a soldier object just a basic example I was trying to setup for my game. But when the solider collides with the cube, it doesn't detect it at all. I have tried all of the things I can think of, but I have never used Sparky's before. So, what is wrong with my code and how to I get it to work?



Thanks!
Zeus

Indicium
18
Years of Service
User Offline
Joined: 26th May 2008
Location:
Posted: 14th Dec 2010 23:55 Edited at: 14th Dec 2010 23:56
You need to call the sc_AllowObjectScaling command

Load the object, set up sparkys, allow scaling, scale the object, then update

Zeus
20
Years of Service
User Offline
Joined: 8th Jul 2006
Location: Atop Mount Olympus
Posted: 15th Dec 2010 01:17
Thank you so much! Works like a charm.

Indicium
18
Years of Service
User Offline
Joined: 26th May 2008
Location:
Posted: 15th Dec 2010 23:36
Glad to hear it, happy coding

Login to post a reply

Server time is: 2026-07-21 07:02:40
Your offset time is: 2026-07-21 07:02:40