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.

Newcomers DBPro Corner / Sprite alpha

Author
Message
sneaky smith12
18
Years of Service
User Offline
Joined: 30th Apr 2006
Location: Like id tell you, oh wait i just did
Posted: 14th Apr 2008 06:23
I'm trying to transition two pictures when a trigger (mouse click/key press) is pulled.

However set sprite alpha doesn't seem to work the way I think...



For some reason you can't see it actually fading, and it has an abrupt change somewhere along, however the pictures remain in order.

If at first you dont succeed, LOWER YOUR STANDARDS.
Virtual Nomad
Moderator
18
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 14th Apr 2008 06:42 Edited at: 14th Apr 2008 06:46
the code:


is going to go by so fast that you'll miss the whole effect.
adding:
wait 10
to the for/next loop will let the transition happen over ~ 2.5 seconds. adjust as desired.

Virtual Nomad
AMD XP 1800+ (~1.6 Ghz) / 1.5 GB RAM
ATI Radeon 8700LE 128 MB / Windows XP
sneaky smith12
18
Years of Service
User Offline
Joined: 30th Apr 2006
Location: Like id tell you, oh wait i just did
Posted: 14th Apr 2008 06:53 Edited at: 14th Apr 2008 06:56
Thanks for the reply, but it is still quite abrupt even with wait 1000.

I did already try that, but I gave it another shot.

Also the sync command doesn't help.

Here is all the source code.



If at first you dont succeed, LOWER YOUR STANDARDS.
Virtual Nomad
Moderator
18
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 14th Apr 2008 07:46
if you wait 1000, that loop will take 4.26 minutes to complete so how is it "abrupt"?

check the attached exe w/ sprites for what i think is the effect you're looking for?

and here's the code to it:


Virtual Nomad
AMD XP 1800+ (~1.6 Ghz) / 1.5 GB RAM
ATI Radeon 8700LE 128 MB / Windows XP

Attachments

Login to view attachments
sneaky smith12
18
Years of Service
User Offline
Joined: 30th Apr 2006
Location: Like id tell you, oh wait i just did
Posted: 15th Apr 2008 00:48 Edited at: 15th Apr 2008 04:42
Quote: "
"


meh, figured it out...



Thanks for your guys help ...

Edit:
Here is the video

I edited with the code a bit, and got about as close as I could get to 1 minute per picture, but it isn't perfect... Is there any easy way to account for processing time of code on the wait function?

If at first you dont succeed, LOWER YOUR STANDARDS.
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 15th Apr 2008 07:43
sneaky smith12 this may help you to get away form the wait command and if you work out how to put it in a while command the your code will not frezzes up doinfg await.

have look its what I use to make the blink cursor work on input functions,




Dark Physics makes any hot drink go cold.
sneaky smith12
18
Years of Service
User Offline
Joined: 30th Apr 2006
Location: Like id tell you, oh wait i just did
Posted: 15th Apr 2008 08:00
Thanks

I already got what I needed from it (was just making an avi file from recording a few pictures). It is just always fun to take the harder road then say... windows movie maker

If at first you dont succeed, LOWER YOUR STANDARDS.

Login to post a reply

Server time is: 2024-11-25 06:32:07
Your offset time is: 2024-11-25 06:32:07