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.

Dark GDK / problem with dbCloneObject

Author
Message
Taoie
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 22nd May 2008 17:09
When I use "dbCloneObject" my Camera will turn angle to the first angle like I start game. Maybe angle turn to 0.
- Why it turn by itself ? How to fix this?

How good is it ,if I call monster by using dbCloneObject ?
but when i call monster by using dbCloneObject .When there are over 3 monsters' object it'll be lag.. my FPS show lower number.
- Which way is better?
Sephnroth
22
Years of Service
User Offline
Joined: 10th Oct 2002
Location: United Kingdom
Posted: 22nd May 2008 19:03
near the start of your program write:

dbAutoCamOff();

Auto-Camera is on by default and it positions the camera next to every object you make, so when you clone one it gets put next to it.

Cloning objects is always better if your game allows it.

Taoie
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 23rd May 2008 20:48
thx u so musch..

but now I still have problem about using dbCloneObject..
when I clone monster's object more than 4 objects.
my game will slow down.. the FPS is below 20 frame per sec..
why?..

but if I change class of object..let all object stop at the first frame animation (frame 1).. i can call more than 10 object before it's FPS lower than 20 fps..

How to fix this..then i can call monster object more than 20 objects without game slow down..

my comp spec can play another game like counter strike ..warcraft
there are objects in game more than 10 ,hmm..
but i can play it without slow down ..

Login to post a reply

Server time is: 2024-11-20 11:36:13
Your offset time is: 2024-11-20 11:36:13