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 / creating cutscene

Author
Message
burned333
16
Years of Service
User Offline
Joined: 8th Jun 2008
Location:
Posted: 8th Jun 2008 22:54
hi everyone, i'm a new DGDK user. i'm trying to create a cutscene for a game, it's like an intro before the game start. i want the camera to change its position during the cutscene after a few second, should i use dbWait() or dbSleep()? anyone could give me examples?
programing maniac
16
Years of Service
User Offline
Joined: 19th Apr 2008
Location: Bawk, Bawkity
Posted: 9th Jun 2008 00:40
you would need a timer thing set up. There is this person named Jason, and he made this oop library that has a timer header file. I would use that.

Hm.... WHere is his oop library......

Oh yes-
http://code.google.com/p/darkgdkoop/

(Need a Name)
burned333
16
Years of Service
User Offline
Joined: 8th Jun 2008
Location:
Posted: 9th Jun 2008 01:39
hey, thanks. i'm downloading the library now. but i found dbTimer() in the manual, i don't know how to use it though. why don't use it instead?
SunDawg
19
Years of Service
User Offline
Joined: 21st Dec 2004
Location: Massachusetts
Posted: 9th Jun 2008 02:55
dbTimer() is a little ambiguous. All it does is output an integer value that increments 1000 times a second. You have to manage the actual timing yourself. The header in Jason P. Sage's library is does that extra work for you.


My site, for various stuff that I make.
burned333
16
Years of Service
User Offline
Joined: 8th Jun 2008
Location:
Posted: 9th Jun 2008 03:51
i've downloaded the jgc files and include it in my vc++ directories, but i still don't understand how to use the jgc_clock and jgc_timer. could u give some short example please? thank u
dbGamerX
16
Years of Service
User Offline
Joined: 23rd Nov 2007
Location:
Posted: 9th Jun 2008 06:52
That's really helpful. I'm downloading the lib right now.

dbPrint ( "Sig" );
burned333
16
Years of Service
User Offline
Joined: 8th Jun 2008
Location:
Posted: 10th Jun 2008 01:56
okay, i've got my timer set up and it works. but the problem is i can't stop the timer. i just want to change the camera view in a certain limit of time. i.e. i need to change the cam01 to cam02 within 5 seconds, and then cam02 to cam03 within next 10 secs. this is my code :


i'm still a c++ newbie, can anyone help me please?

Login to post a reply

Server time is: 2024-11-17 17:30:14
Your offset time is: 2024-11-17 17:30:14