Results 1 to 6 of 6

Thread: Mouse in Iso games

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2001
    Location
    Ufa
    Posts
    1

    Angry Mouse in Iso games


    Isometric engines...
    Where i can get some examples? I need only "normal" mouse support...

    Fanx
    ...

  2. #2
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    See what RECT the mouse falls into, if there are more than one then start with any. Then, use a GetPixel call on the mask (or sprite if colour keyed) to see if it is the transparent colour. If it is the transparent colour, check what quadrant of the RECT it's in. If it's in the upper-left, choose the one to the upper-left, etc.
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  3. #3
    Frenzied Member mlewis's Avatar
    Join Date
    Sep 2000
    Posts
    1,226
    www.isohex.net

    Very good site, unfortunately its C++ and DirectX but the theory is very good.
    M. Lewis
    Pi-Q Software
    How many mouse clicks does it take to cook breakfast?

    Blargh! I am dead!

  4. #4
    Originally posted by Sastraxi
    See what RECT the mouse falls into, if there are more than one then start with any. Then, use a GetPixel call on the mask (or sprite if colour keyed) to see if it is the transparent colour. If it is the transparent colour, check what quadrant of the RECT it's in. If it's in the upper-left, choose the one to the upper-left, etc.
    can you show me some code please

  5. #5
    Ex-Super Mod'rater Electroman's Avatar
    Join Date
    Sep 2000
    Location
    Newcastle, England
    Posts
    4,349
    Posted by nareth
    can you show me some code please
    3 Years old you know . Also Sastraxi isn't active on these forums now-a-days .
    When your thread has been resolved please edit the original post in the thread ()
    and amend "-[RESOLVED]-" to the end of the title and change the icon to , Thank you.

    When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

  6. #6
    PowerPoster Halsafar's Avatar
    Join Date
    Jun 2004
    Location
    Saskatoon, SK
    Posts
    2,339
    Why can't I figure out what
    Isometric Engine is?

    What is special about it?
    "From what was there, and was meant to be, but not of that was faded away." - - Steve Damm

    "The polar opposite of nothingness is existance. When existance calls apon nothingness it shall return to nothingness." - - Steve Damm

    "When you do things right, people won't be sure if you did anything at all." - - God from Futurama

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