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 / When I scale my map the collision gets messed up

Author
Message
Mr Bigglesworth
16
Years of Service
User Offline
Joined: 4th Mar 2008
Location:
Posted: 25th Jun 2009 19:14 Edited at: 25th Jun 2009 19:14
I made a map in mapscape (I also tried 3DWS) and I can load it fine into my engine and there is collision, but the map is to big, it makes the player look like a mouse, because the world is too big (screenshot attached of this). Whenever I use the scale object command to make it smaller it works, but you fall through the floor and there is no collision. I am using Sparky's Collision, I can't progress any further with my engine or making maps until I can solve this dilema. Here is my entire code



I tried increasing the radius of the players collision sphere and it worked to some extent, it made the player bigger but you could't move because the collision sphere was so big.

Attachments

Login to view attachments
=PRoF=
21
Years of Service
User Offline
Joined: 17th Mar 2003
Location: Milton Keynes, UK
Posted: 26th Jun 2009 00:53
i think you need to scale the object before u set it up in sparkys.

Altho I'm not sure, I'm still learning sparkys myself.

Without Music or Love the world would be a very empty place... Thank god I still have music.. --'-<@
LBFN
17
Years of Service
User Offline
Joined: 7th Apr 2007
Location: USA
Posted: 26th Jun 2009 15:49 Edited at: 26th Jun 2009 15:50
Are you using the latest version of Sparky's, by chance? If so, you might try this:
load object....
SC_SetupComplexObject.....
SC_Allowobjectscaling ObjectNumber
scale object .......
SC_UpdateObject ObjectNumber


So many games to code......so little time.
Mr Bigglesworth
16
Years of Service
User Offline
Joined: 4th Mar 2008
Location:
Posted: 26th Jun 2009 18:33
Thanks LBFN, I never thought to use SC_Allowobjectscaling ObjectNumber.
LBFN
17
Years of Service
User Offline
Joined: 7th Apr 2007
Location: USA
Posted: 27th Jun 2009 00:20
You're welcome.


So many games to code......so little time.

Login to post a reply

Server time is: 2024-09-28 08:31:44
Your offset time is: 2024-09-28 08:31:44