User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 12

Thread: Clicking on an irregular area (RISK-like game)

  1. #1
    No Products Registered

    Join Date
    Apr 2008
    Posts
    26
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Clicking on an irregular area (RISK-like game)

    Hi,

    I am thinking of making a simple strategical RISK like game with MMF2. The approach I am thinking of taking is to generate a 2D map and place irregular hit sections over it...

    But how do I represent an irregular hit section?

  2. #2
    Clicker Multimedia Fusion 2

    Join Date
    Mar 2007
    Location
    I'm right here!!
    Posts
    305
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Clicking on an irregular area (RISK-like game)

    Are these sections going to be different all the time?

  3. #3
    No Products Registered

    Join Date
    Apr 2008
    Posts
    26
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Clicking on an irregular area (RISK-like game)

    No; the hit sections are set according to the outline of each territory on the map (which is fixed)

  4. #4
    No Products Registered

    Join Date
    Apr 2008
    Location
    Germany
    Posts
    44
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Clicking on an irregular area (RISK-like game)

    why don´t you use Actives?

  5. #5
    No Products Registered

    Join Date
    Apr 2008
    Posts
    26
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Clicking on an irregular area (RISK-like game)

    Quote Originally Posted by templer
    why don´t you use Actives?
    I suppose I could. I could slice up each territory into its own active object, or have the outline of each territory as an active object.

    Alternatively, I could store all the polygonal points in an array or some sort of data structure and check for a hit. The only problem is what sort of tool I could use to generate all those points.

  6. #6
    Clicker Multimedia Fusion 2SWF Export Module

    Join Date
    Sep 2006
    Posts
    1,544
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: Clicking on an irregular area (RISK-like game)

    it depends on how many you will have. If you want user generated maps, or really really big maps, you'd want to story the collision mask in an array of some sort and load it somehow to check for points. However, this is incredibly complicated when applied to irregular surfaces. Elsewise you could store the collision mask on a grid of sorts, having points defined by what square they lie on predetermined, and finding the closest one a mouse click lies near. However, with a sparse spacing, you would have inaccurate clicks, and with dense spacing, the array could potentially be very very large (storing the ownership of every single pixel on screen would be tantamount to a BMP image of that size, potentially hundreds of megabytes for a large map).

    So yeah, use active objects and call it a day.

  7. #7
    No Products Registered

    Join Date
    Apr 2008
    Posts
    26
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Clicking on an irregular area (RISK-like game)

    Quote Originally Posted by Pixelthief

    ...snipped...

    So yeah, use active objects and call it a day.
    That would definitely take a while for the artist to get the art ready...but I suppose I could whip up dummy hit-areas by using the magic wand in Photoshop.

    Hopefully there is a way to define polygonal hit section soon (I have checked various extensions, but no luck)


  8. #8
    No Products Registered

    Join Date
    Dec 2006
    Posts
    1,332
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Clicking on an irregular area (RISK-like game)

    Quote Originally Posted by CKX
    Quote Originally Posted by Pixelthief

    ...snipped...

    So yeah, use active objects and call it a day.
    That would definitely take a while for the artist to get the art ready...but I suppose I could whip up dummy hit-areas by using the magic wand in Photoshop.

    Hopefully there is a way to define polygonal hit section soon (I have checked various extensions, but no luck)
    If all of the areas are different colors, you could check pixel color.

  9. #9
    Clicker Multimedia Fusion 2SWF Export Module

    Join Date
    Sep 2006
    Posts
    1,544
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: Clicking on an irregular area (RISK-like game)

    O_o thats a good idea

  10. #10
    No Products Registered

    Join Date
    Jul 2006
    Posts
    144
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Clicking on an irregular area (RISK-like game)

    You don't need an artist for that... if the problem is that your map is all one piece, use *invisible* actives for collision detection. They don't have to be 100% pixel-accurate, just close polygon approximations. The user won't care if 2 of the 1000 pixels in Western Australia aren't properly mapped.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. How to see the son objects and the area out of the game during creation and test?
    By daryuss in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 4th September 2013, 02:36 PM
  2. irregular vertical counter
    By SolarB in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 15th October 2012, 07:53 AM
  3. Irregular animation?
    By Outcast in forum Multimedia Fusion 2 - Technical Support
    Replies: 16
    Last Post: 10th February 2011, 09:46 AM
  4. Help With Mouse Clicking In Game and shooting
    By IIMikII in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 24th October 2008, 05:41 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
  •