Results 1 to 8 of 8

Thread: How you can do this kind of graphic with VB6?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Aug 2007
    Location
    NY
    Posts
    26

    How you can do this kind of graphic with VB6?

    Dear Friends,
    I really appreciate if you can help me in this matter.
    I want to have an empty form and 50 pictures.
    Each time when the form started or by pressing a button in the form I want 5 random pictures appear into the form with some kind of animation.
    I attached a sample of one game which is pretty close to what I want to do.
    Thank you in advance.
    sample link:
    http://rapidshare.com/files/138273030/sample.WMV
    Attached Files Attached Files

  2. #2

    Thread Starter
    Junior Member
    Join Date
    Aug 2007
    Location
    NY
    Posts
    26

    Re: How you can do this kind of graphic with VB6?

    So anybody,any answer?
    Please at least give me a lead!

  3. #3
    Hyperactive Member Quiver318's Avatar
    Join Date
    Sep 2007
    Posts
    260

    Re: How you can do this kind of graphic with VB6?

    You might search around this forum for the term: Sprite.

    Here is a head start in that regard:
    http://www.vbforums.com/showthread.p...90#post3288490

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Aug 2007
    Location
    NY
    Posts
    26

    Re: How you can do this kind of graphic with VB6?

    Quote Originally Posted by Quiver318
    You might search around this forum for the term: Sprite.

    Here is a head start in that regard:
    http://www.vbforums.com/showthread.p...90#post3288490
    Thanks Quiver318.
    I checked it but unfortunatley I couldn't get it to work.I'll try to find out more about the "Sprite" you mentioned.
    Thank you anyway.

  5. #5
    Hyperactive Member Quiver318's Avatar
    Join Date
    Sep 2007
    Posts
    260

    Re: How you can do this kind of graphic with VB6?

    Sorry that the control did not work for you.

    Sprites are small graphics that can be moved around the screen, independently. With Sprites, you can create animated effects, detect collisions (of two or more sprites), and is more or less how all 2D games are made. I guess you could so look into Raster (block graphics) and Vector Graphics (line art), too. Anyway, if you want things to fly around on the screen with user interaction, then I think Sprite code is the way to go.

    Good luck!

  6. #6
    PowerPoster joaquim's Avatar
    Join Date
    Apr 2007
    Posts
    3,951

    Re: How you can do this kind of graphic with VB6?

    i'm trying finish 1 graphic effect...
    then i will put the new Sprite version...
    with new Sprite version you can do what you want(at least i think)....
    VB6 2D Sprite control

    To live is difficult, but we do it.

  7. #7

    Thread Starter
    Junior Member
    Join Date
    Aug 2007
    Location
    NY
    Posts
    26

    Re: How you can do this kind of graphic with VB6?

    Thank you very much Quiver318, at least you show me some leads and now with joaquim help I might be able to do the things I want .
    So thank you both for your support.
    I cannot wait to see how the new Sprites gonna be.

  8. #8
    PowerPoster joaquim's Avatar
    Join Date
    Apr 2007
    Posts
    3,951

    Re: How you can do this kind of graphic with VB6?

    i'm sorry, but i need more time to finish a little things...
    my last graphic effect(intire image transparent) is crazy me....
    ok for you start, i can give you some advices:
    -use pictureboxes/usercontrol for your poject;
    -use the bitblt() api function for move the images;
    -use the StretchBlt() api function for stretch the image;
    -use the AlphaBlend() api function for put the intire image transparent;
    -use the Trasnparentblt() api function for put the backcolor transparent.
    i think is what you need for start...
    i hope help you.
    VB6 2D Sprite control

    To live is difficult, but we do it.

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