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 / Help with Sparky collitions

Author
Message
Black Profductions
16
Years of Service
User Offline
Joined: 15th Sep 2008
Location: Argentina
Posted: 3rd Nov 2009 01:39
Hi, i have been using a fps source provided in the code snippet, it uses sparky collision to make collisions, the problem is that i cant get collisions working
I have already installed the newer version of sparky dll and i installed it in the right place, here is the code so u guys can take it a look and help me


Daniel wright 2311
User Banned
Posted: 3rd Nov 2009 02:58 Edited at: 3rd Nov 2009 03:00
are you using a camera for your player or an object? it look as you are using a camera, so you need to use a collition function for your camera.

here is the function i made to use for camera collition.



DSW
Black Profductions
16
Years of Service
User Offline
Joined: 15th Sep 2008
Location: Argentina
Posted: 3rd Nov 2009 20:43
i was using it for the player, it made a player that had no collision, to check the collision dll were working i runed the demo of sparkis collision, and compilated it myself and worked, so its a problem with this code, i still couldnt fin it out

Daniel wright 2311
User Banned
Posted: 3rd Nov 2009 20:45 Edited at: 3rd Nov 2009 20:48
edit nevermind, i see you plr is set up,

DSW
Black Profductions
16
Years of Service
User Offline
Joined: 15th Sep 2008
Location: Argentina
Posted: 3rd Nov 2009 20:49 Edited at: 3rd Nov 2009 20:51

That function should make it, it makes a sphere that is the player, and then sets the collisions for it
Maybe, i should add collisions to the level?

Daniel wright 2311
User Banned
Posted: 3rd Nov 2009 20:52
you have 2, of thease in your set up leval

sc_setupObject 1,1,2 :
sc_setupComplexObject 1,1,2

you only need one.

sc_setupComplexObject 1,1,2

erase this line in your make leval function

sc_setupObject 1,1,2

DSW
Black Profductions
16
Years of Service
User Offline
Joined: 15th Sep 2008
Location: Argentina
Posted: 3rd Nov 2009 21:12
Line deleted, but still that wasnt the problem :/

Daniel wright 2311
User Banned
Posted: 3rd Nov 2009 21:24
ok, well 2 things i do see is dont make you sky sphere with the same function as your leval. do them sepretly.

and also you are scaling your level after you have set it up, you have to place the scale object 1 before the setup object. I do not even use sc_scaleobject obj#, this will ussuly mees everything up, i know, I could never get it to work myself.

DSW
Softwizz
15
Years of Service
User Offline
Joined: 14th May 2009
Location: U.K.
Posted: 4th Nov 2009 02:02
looks like my code.
What doesnt work? Does your player fall through the floor? does it walk through walls.

Try the elevator code I made in this thread:
http://forum.thegamecreators.com/?m=forum_view&t=157213&b=6

There is all the media included in that thread so if collisions dont work when you compile it then it will be a problem with how you installed the collision dll.

Nothing to see here, move along please.
Black Profductions
16
Years of Service
User Offline
Joined: 15th Sep 2008
Location: Argentina
Posted: 4th Nov 2009 16:21
thanks softwizz, yes its your code, i will try your new one

Softwizz
15
Years of Service
User Offline
Joined: 14th May 2009
Location: U.K.
Posted: 5th Nov 2009 16:57
Well whats going on then, did it work or not?

Nothing to see here, move along please.

Login to post a reply

Server time is: 2024-11-24 23:19:22
Your offset time is: 2024-11-24 23:19:22