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 / Nuclaer Glory Collision Issue

Author
Message
BlackChaos
16
Years of Service
User Offline
Joined: 2nd May 2010
Location: London
Posted: 6th Feb 2012 22:51
Hi guys, I've edited the example file "3rd_Shooter.dba" that came with the NGC .DLL, so if you havn't tested this file yourself then please do so before you reply.. I appreciate everyones help but in this instance it would just would make things easier.

Ok so I replaced the level file with a box (created below all objects as the floor). After testing a couple times I found out that the player object only collides when it's moving. For anyone who has used this example file you would know that there is a elevator object that moves; I edited the player object gravity code from:


to



After positioning the player object under the elevator object, the elevator moves striaght through the player object when the gravity is not being applied. But when I hold the spacekey to decrement the players Y position, the elevator rises up to the object and carrys the object along with it.

Not sure what I'm doing wrong but I've pretty much left the original code intact and changed the level object to a box object(Dimensions, x= 1000,y = 20,z= 1000).

Thanks,

Engine V2 Ameadus Project

Login to post a reply

Server time is: 2026-07-10 09:56:55
Your offset time is: 2026-07-10 09:56:55