Results 1 to 14 of 14

Thread: [RESOLVED] Graphic animation for card game.

  1. #1

    Thread Starter
    Fanatic Member Flashbond's Avatar
    Join Date
    Jan 2013
    Location
    Istanbul
    Posts
    646

    Resolved [RESOLVED] Graphic animation for card game.

    Hi Guys!

    I am designing a card game with VB.NET. I have a deck of cards (52 cards) spanned horizontally along. I will request from the user to pick 5 cards. I want an effect like iOS dock. Is it possible?

    Thanks a lot!

  2. #2
    PowerPoster dunfiddlin's Avatar
    Join Date
    Jun 2012
    Posts
    8,245

    Re: Graphic animation for card game.

    No idea. Why would you assume that a forum for Vb.Net would have anyone in it that has a clue what the iOS Dock 'effect' actually is? A picture paints a thousand words and all that.
    As the 6-dimensional mathematics professor said to the brain surgeon, "It ain't Rocket Science!"

    Reviews: "dunfiddlin likes his DataTables" - jmcilhinney

    Please be aware that whilst I will read private messages (one day!) I am unlikely to reply to anything that does not contain offers of cash, fame or marriage!

  3. #3

    Thread Starter
    Fanatic Member Flashbond's Avatar
    Join Date
    Jan 2013
    Location
    Istanbul
    Posts
    646

    Re: Graphic animation for card game.

    Fisheye? Ok, I'll make an example with flash.

  4. #4

    Thread Starter
    Fanatic Member Flashbond's Avatar
    Join Date
    Jan 2013
    Location
    Istanbul
    Posts
    646

    Re: Graphic animation for card game.

    Ok, I think I found something about this. It is called bubblebar which comes with a DevComponents dll. But it will be just a small stupid game and I want to keep it as a single exe. No setup. Is it very difficult to write something like that?
    Last edited by Flashbond; Apr 11th, 2013 at 08:25 AM.

  5. #5
    New Member Dternity's Avatar
    Join Date
    Apr 2013
    Posts
    11

    Re: Graphic animation for card game.

    If you are talking about moving the Cards Up, Down, Left or right then Yes it's pretty:

    Pulic sub Timer1 event args( You get the point)
    if pictuebox1.left => 200 then

    Else
    pictuebox1.left += 10
    End if

    End sub
    If you are talking about changing the transparency then you will have a bad time doing that because i think you have to go into GDI+ or DirectX to do that.

    Either way, good luck

  6. #6

    Thread Starter
    Fanatic Member Flashbond's Avatar
    Join Date
    Jan 2013
    Location
    Istanbul
    Posts
    646

    Re: Graphic animation for card game.

    Yeah, thanks Dternity But I want some pretty cool stuff called like fisheye dock or rocket dock
    Last edited by Flashbond; Apr 12th, 2013 at 07:54 AM.

  7. #7
    New Member Dternity's Avatar
    Join Date
    Apr 2013
    Posts
    11

    Re: Graphic animation for card game.

    That is very possible though you will need some pretty epic optimization for it too run smoothly without GDI+ or directx.

  8. #8

    Thread Starter
    Fanatic Member Flashbond's Avatar
    Join Date
    Jan 2013
    Location
    Istanbul
    Posts
    646

    Re: Graphic animation for card game.

    Yeah, epic... In fact I found a java code for this and it is very very complicated. I thing I will not do...
    Last edited by Flashbond; Apr 13th, 2013 at 07:03 AM.

  9. #9

    Thread Starter
    Fanatic Member Flashbond's Avatar
    Join Date
    Jan 2013
    Location
    Istanbul
    Posts
    646

    Re: Graphic animation for card game.

    Here is the demo I found : http://www.ilstours.net/demo.html

    But jquery.min.js does the whole magic and you won't like to look whats in it

  10. #10
    New Member Dternity's Avatar
    Join Date
    Apr 2013
    Posts
    11

    Re: Graphic animation for card game.

    Just do some research on location, mouse location and changing sizes in runtime and you should be good to go

  11. #11
    Frenzied Member MattP's Avatar
    Join Date
    Dec 2008
    Location
    WY
    Posts
    1,227

    Re: Graphic animation for card game.

    If that was my requirement I would look at WPF rather than WinForms.
    This pattern in common to all great programmers I know: they're not experts in something as much as experts in becoming experts in something.

    The best programming advice I ever got was to spend my entire career becoming educable. And I suggest you do the same.

  12. #12

    Thread Starter
    Fanatic Member Flashbond's Avatar
    Join Date
    Jan 2013
    Location
    Istanbul
    Posts
    646

    Re: Graphic animation for card game.

    Quote Originally Posted by MattP View Post
    If that was my requirement I would look at WPF rather than WinForms.
    You are a wise guy. Nearly after one month, after all tryings over pictureboxes and system drawing events, my decision was endend in WPF.

  13. #13
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    26,415

    Re: Graphic animation for card game.

    if it's possible in java, it's possible in winforms...

  14. #14

    Thread Starter
    Fanatic Member Flashbond's Avatar
    Join Date
    Jan 2013
    Location
    Istanbul
    Posts
    646

    Re: [RESOLVED] Graphic animation for card game.

    For some reasons, actually no .paul.. At least in my case... Winform picturboxes does not support relative transparency. If you are using an alpha image like .png, it only shows the parent which is usually the main form. If two images become one on other, it really becomes a pain in a... Then I tried System.Draw.Images events but later they become impossible to manage after a particular point.

    WPF pictureboxes supports relative transparency and has nice features like xaml.
    Last edited by Flashbond; May 30th, 2013 at 02:04 PM.

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