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 / dbLoadAnimation and dbLoadSound...

Author
Message
AGRAC393
15
Years of Service
User Offline
Joined: 3rd Jul 2009
Location:
Posted: 3rd Jul 2009 18:54
Ok, I'm new to all of this, but I love it, It's pretty fun!! Anyway I was doing this small project and I wanted to load sound and the you win video. But with no luck. The only error I get is error C2661: 'dbPlayAnimation' : no overloaded function takes 2 arguments...

Here is my full source if you need it. Please note that I'm still new!
Marsh0
15
Years of Service
User Offline
Joined: 18th Mar 2009
Location:
Posted: 3rd Jul 2009 20:31 Edited at: 3rd Jul 2009 20:48
dbPlayAnimation("youwin1.avi", 1);


Did you read the help files? your not putting enough info in. Or to much.

void dbPlayAnimation ( int iAnimation )
void dbPlayAnimation ( int iAnimation, int iX, int iY )
void dbPlayAnimation ( int iAnimation, int iX1, int iY1, int iX2, int iY2 )
void dbPlayAnimation ( int iAnimation, int iBitmap, int iX1, int iY1, int iX2, int iY2 )
yahya
15
Years of Service
User Offline
Joined: 16th Oct 2008
Location:
Posted: 3rd Jul 2009 23:17 Edited at: 3rd Jul 2009 23:21
Am a noob myself but I think it I can help ypu here.

It means you can't put anything in dbPlayAnimation but integer numbers, "youwin1.avi" is a char not an int, use dbLoadAnimation 1st then play it.

as Marsh0 said, these are the only methods you can use.
Ian G
16
Years of Service
User Offline
Joined: 3rd Jun 2008
Location: SSM, Canada
Posted: 4th Jul 2009 00:12 Edited at: 4th Jul 2009 00:19
Unless I'm mistaken, I don't believe the animation commands work in DGDK right now (I don't know about the latest 7.3 update).

You may want to look at
http://forum.thegamecreators.com/?m=forum_view&t=147978&b=22
http://forum.thegamecreators.com/?m=forum_view&t=148937&b=22
http://forum.thegamecreators.com/?m=forum_view&t=152842&b=22

These are some alternatives to playing video in DarkGDK
Mista Wilson
16
Years of Service
User Offline
Joined: 27th Aug 2008
Location: Brisbane, Australia
Posted: 4th Jul 2009 04:54
Ive not been able to get the animation commands to work either, in any GDK version through to 7.3, so I would agree with Ian G that they dont work.

There are quite a few alternative to playing movies/video files in DarkGDK, although most of them require a fair knowledge of C++ and scripting languages(BinkVideo by RAD is one example).

I think there was a snippet somewhere in these forums again by a user called "video playback" that allowed you to play video inside DarkGDK easily(Ian G's links in the above post point you there)

If it ain't broke.... DONT FIX IT !!!

Login to post a reply

Server time is: 2024-10-01 05:45:55
Your offset time is: 2024-10-01 05:45:55