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 / Fade in/out logo or picture

Author
Message
Faeedor
13
Years of Service
User Offline
Joined: 10th Aug 2011
Location:
Posted: 11th Aug 2011 02:36
Ok so I am trying to figure out how to take a picture (logo) and get it to fade in, then fade out. It is going to be a quick splash page before the main screen of a game. I have tried using a few different commands such as dbFadeBitmap, dbFadeObject, etc. I still haven't been able to get it to work correctly. Do you know how to do this? Any help would be appreciated! Thanks!
bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 11th Aug 2011 12:44
texture a plain with your bitmap logo

change alpha of plain to get a fading effect.
Hassan
15
Years of Service
User Offline
Joined: 4th May 2009
Location: <script> alert(1); </script>
Posted: 11th Aug 2011 14:39
i think there is a function called dbSetSpriteAlpha? i dont quite remember, but if there is one, just use a sprite for your logo, and with time, decrease it's alpha

Hawkblood
14
Years of Service
User Offline
Joined: 5th Dec 2009
Location:
Posted: 14th Aug 2011 00:43
If those don't work, you could make a memblock from your image and darken the whole thing by changing the values each frame and use dbMakeImageFromMemblock(...) and display it.

I would first try the others.

The fastest code is the code never written.

Login to post a reply

Server time is: 2024-10-02 19:26:47
Your offset time is: 2024-10-02 19:26:47