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 / How do I load stuff of images in one time

Author
Message
ImPrincE
14
Years of Service
User Offline
Joined: 28th Dec 2009
Location:
Posted: 28th Dec 2009 07:26
I can't use .gif in DarkGDK

but my friend want a animation pictures

I think I'll use

for (;
with dbSprite
and dbSync ()

can I use

for with dbLoadImage too ?

---------------------

It is a gif animation

I'll step ahead. And I'll never fall.

Attachments

Login to view attachments
Marsh0
15
Years of Service
User Offline
Joined: 18th Mar 2009
Location:
Posted: 28th Dec 2009 07:40
You could just split the animation into multiple frames and then play them that way.
ImPrincE
14
Years of Service
User Offline
Joined: 28th Dec 2009
Location:
Posted: 28th Dec 2009 07:50
How do split ??

use dbSetSpriteFrame ( int iSprite, int iFrame ) ??

and use

( int iSprite, int iStart(I have to put a start frame ??), int iEnd, int iDelay )

to play ??

I'll step ahead. And I'll never fall.
Hassan
15
Years of Service
User Offline
Joined: 4th May 2009
Location: <script> alert(1); </script>
Posted: 28th Dec 2009 13:03
take a look at invaders game tutorial with DGDK, i think there is everything you are looking for

Marsh0
15
Years of Service
User Offline
Joined: 18th Mar 2009
Location:
Posted: 28th Dec 2009 20:05
First you would have to manually make a image file to contain each frame of the animation a example of what you want it to look like is below:



Then simply use this code:

dbPlaySprite ( int iSprite, int iStart, int iEnd, int iDelay )

Isprite is the number of the sprite that you created with that graphics file. iStart is the first part of the the animation you want to use. In your case this is proberly just 1. Then iEnd is the last part of the animation. So put the number of the last frame of your animation becouse i assume you want to play all of it.
Lilith
16
Years of Service
User Offline
Joined: 12th Feb 2008
Location: Dallas, TX
Posted: 29th Dec 2009 04:57
Quote: "How do split ??"


If you're talking about actually splitting an existing animated GIF file, good luck. Animated GIFs aren't split up into frames. They're animated by replacing rectangles over the existing frame so as only to replace the parts that change from one frame to the next.

Lilith, Night Butterfly
I'm not a programmer but I play one in the office

Login to post a reply

Server time is: 2024-11-20 07:29:41
Your offset time is: 2024-11-20 07:29:41