Results 1 to 15 of 15

Thread: Fade screen In/Out -Video Game Title Screen - Please Help

  1. #1

    Thread Starter
    Member
    Join Date
    Nov 2001
    Location
    Heaven........ Whats that fire doing here?
    Posts
    39

    Question Fade screen In/Out -Video Game Title Screen - Please Help

    I have looked at all the posts and topics on this forum and none of them seem to make sence, I have tried toutorials
    (BAD SPELLING) and downloading examples..... I dont get it... I have heard of using DirectX but That looks kinda complicated.. Im confused and lost......... I need help......... I want this for a video Game that I am programming.... I want the title screen to fade in, and then out, and then the selection screen to fade in.... you have seen it on video games.....

    Thanks in advance!!!!

    Frm_Title
    Frm_Selection



  2. #2
    Addicted Member Janus's Avatar
    Join Date
    Aug 2001
    Location
    California
    Posts
    221
    You can't do that using forms, unless you have windows 2000 or XP, and even in that case, it'd be slow.
    "1 4m 4 1337 #4xz0r!'
    Janus

  3. #3
    PowerPoster i00's Avatar
    Join Date
    Mar 2002
    Location
    1/2 way accross the galaxy.. and then some
    Posts
    2,390

    It is so posible

    it's not only posible but also extremaly fast
    and works on ANY VERSION OF WINDOWS

    in the attached example i fade to what is behind the window;
    but you can fade to whatever is in the picDC.picture
    Attached Files Attached Files

  4. #4
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    Your example didn't work for me, I'm afraid
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  5. #5
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    Actually, if you could pull it off with a 256-colour titlescreen, you can use palette animation to fade all of the palette values to 0. I think this may be your best bet...
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  6. #6
    Addicted Member Janus's Avatar
    Join Date
    Aug 2001
    Location
    California
    Posts
    221
    He wants to fade BETWEEN the two WINDOWS, not the images. And that's only possible with some sort of alpha blending, like GDI+ Layered Windows.
    "1 4m 4 1337 #4xz0r!'
    Janus

  7. #7

    Thread Starter
    Member
    Join Date
    Nov 2001
    Location
    Heaven........ Whats that fire doing here?
    Posts
    39

    i00, It didn't work

    When I tried your example it highlighted the Get DC in the Private Sub Form Load Procedure........ Can you make it work....... Thanks...... hey and Sastraxi..... what do you mean 256-colour titlescreen... what are you talking about???

    And I have seen one of my friends do a fade between forms but he cant help me....

    Any other Ideas????

  8. #8
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    In DirectDraw, you can have a fullscreen app that has an image (surface). If it was 256 colours, there are PALETTES for 256-colour images, which mean each pixel is a pallete entry not a colour. These pixels are directly dependant on the pallette entries, and therefore changing these values changes the pixels... understand? Therefore since you need only change 256 entries it becomes quite a fast procedure

    http://www.vbexplorer.com/directx4vb/

    A great site, go there if you want to learn more!
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  9. #9

    Thread Starter
    Member
    Join Date
    Nov 2001
    Location
    Heaven........ Whats that fire doing here?
    Posts
    39

    Exclamation .... :| HUH? WHAT? WHO? PALLET? COLOR? WHAT???

    Im sorry for my brain being so non-compatable with vb, but I have no clue what you are talking about... Direct X, I have heard a little and seen some AWESOME things done with it but I have no clue in this universe on how to do anything with it, where would be a good place to learn about Direct-X??? A VERY VERY VERY BEGINNERS PLACE? Could you put the code up and describe it? I can usually figure things out that way.....

    THANKS!!!!!

    CAN YOU EXPLAIN????

  10. #10
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    Well, thats just the thing; I've given you the site so try to figure it out yourself . Normally I'm much more helpful, but all that I've given you is theory; it's never worked for me. Perhaps if it works for you, you could show us, but it hasn't worked for me. In that URL that I gave you, look at the Palettes tutorial.
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  11. #11
    Lively Member jamieoboth's Avatar
    Join Date
    Oct 2001
    Location
    UK
    Posts
    116
    It worked fine for me (the download) In fact itz brilliant! Im gonna use it too. It comes up with a file not found error at the beginning, and the prgranm wont run, so all you have to do is add in the module from the folder, and run it! It works like a charm!
    WELL DONE!
    Ich widerstehe allem - nur nicht der Versuchung

    (I can resist anything but temptation)

  12. #12
    Frenzied Member cyborg's Avatar
    Join Date
    May 2000
    Location
    Sweden
    Posts
    1,755

    Thumbs up i've fixed it!

    ive changed some things in the code......
    but it sometimes looks strange if you run it from VB...
    try to compile it first and run the .exe file...
    Attached Files Attached Files
    Check out the FAQ and do a search before you post.
    My tutorials: Anti-Alias Pixels, Accurate Game Loop, Resource File

  13. #13

    Thread Starter
    Member
    Join Date
    Nov 2001
    Location
    Heaven........ Whats that fire doing here?
    Posts
    39

    Talking Hey! Sorry i00! It worked sooooo GREAT!!!! THANKS

    It worked good! I kinda forgot to put the modual with it.... heh

    But I have another problem......... Whenever I fade, it fades to the desktop, but it takes the taskbar and kinda shifts it halfway up the page when I put my own logo on the program....... It like shifts the whole screen after it fades it, and then when its done fading it goes back to normal and the taskbar is in the original place, But I need it to fade to black, not the desktop or the program behind it...... PLEASE HELP ME!!!!!!!!!!! I tried deleting things and then I tried to put a form behind the fading form but so far no success.... HELP!!!!

  14. #14

    Thread Starter
    Member
    Join Date
    Nov 2001
    Location
    Heaven........ Whats that fire doing here?
    Posts
    39

    Talking Hey! Sorry i00! It worked sooooo GREAT!!!! THANKS

    It worked good! I kinda forgot to put the modual with it.... heh

    But I have another problem......... Whenever I fade, it fades to the desktop, but it takes the taskbar and kinda shifts it halfway up the page when I put my own logo on the program....... It like shifts the whole screen after it fades it, and then when its done fading it goes back to normal and the taskbar is in the original place, But I need it to fade to black, not the desktop or the program behind it...... PLEASE HELP ME!!!!!!!!!!! I tried deleting things and then I tried to put a form behind the fading form but so far no success.... HELP!!!!


    I have attached the program that I am using... The fade, but my logo in it, (THE ONE I AM HVING TROUBLE ON) THANKS!!!
    Attached Files Attached Files

  15. #15

    Thread Starter
    Member
    Join Date
    Nov 2001
    Location
    Heaven........ Whats that fire doing here?
    Posts
    39

    Talking Cyborg you're an angel!!!

    Thanks soo much cyborg, your prog(The one you edited) worked 10X better! TIGHT! THANKS!

    -SPY
    []:::::::::::[];;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;/

    Did you know that you can be your own grandpa?! It's really cool. . . . . .
    ------------------------------------------------
    But I'm not. . . Im just Myself. . . . .
    Not my own grandpa. . . . . .

    I put on my own pants today. . . . .
    Im so proud of myself. . . . .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width