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 / Problems in dynamically creating objects :@

Author
Message
Interplanetary Funk
16
Years of Service
User Offline
Joined: 19th Apr 2010
Location: Ipswich, United Kingdom
Posted: 28th Apr 2010 00:18
Hi, I'm trying to make a simple engine that lets you create your own world (sort of garys modish) anyway, when i try creating a cube when the player clicks the mouse, instead of creating one, it creates two and moves the camera. I can't see any problems with my source, mind you I've only been using DBPro for about 4 hours
Here's my code:


(Note: I'm only using that rubbish little phys function until DarkPhysics decides to work -.-)

Any helps greatly appreciated =)
Benjamin
23
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 28th Apr 2010 00:19
You need to update oldTime, and use autocam off near the start so that the camera doesn't get repositioned when you create or move an object.
Interplanetary Funk
16
Years of Service
User Offline
Joined: 19th Apr 2010
Location: Ipswich, United Kingdom
Posted: 28th Apr 2010 00:33
Ah, I hadn't noticed I didn't reset oldTime. Also, thanks for the info about autocam, I hadn't got round to understanding what that did.

Thanks very much =)

Login to post a reply

Server time is: 2026-07-26 04:27:34
Your offset time is: 2026-07-26 04:27:34