User Tag List

Results 1 to 4 of 4

Thread: Minesweeper Safe on first Reveal

  1. #1
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module
    Verbage's Avatar
    Join Date
    Dec 2010
    Location
    Lakewood, CO, USA
    Posts
    233
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Minesweeper Safe on first Reveal

    Hey MMF2 community, I've come across a minor problem.

    I want to add a power-up to my Minesweeper game that allows users to always have a first safe-reveal.

    This is how I've gone about it (doesn't work):
    41. (this event starts the generator Fast Loop)
    +"First press event"
    - Set position of "SafeRevealObject" at "Tile"
    - Start loop "Numbering" "Bombs(global value)" times

    43. (this event generates the bombs)
    +On Loop "Numbering"
    +Pick one of "Underneath_Tile"
    +"Underneath_Tile" is not overlapping "SafeRevealObject"
    +Number of "Bombs" < "Bombs(global value)"
    -Set internal flag 0 on (Underneath_Tile flag 0 ON means bomb)

    However, when I set the mine count super high, I still get a bomb on the first reveal.

  2. #2
    Clicker Fusion 2.5 DeveloperiOS Export ModuleSWF Export Module
    Pineapple's Avatar
    Join Date
    Oct 2010
    Posts
    431
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I don't really understand your code, either because I'm not too smart, or perhaps because I can't see the context you're using it in.
    ANyway, I did something similar in one of my games.

    What I did was to put the "detector" in the center of the screen, then ran a loop checking whether or not the detector was overlapping an object or not. (looking for an open space)
    If the detector was not overlapping, then I ended the loop.
    If it was overlapping an object, I moved the detector 1 space then checked again.
    I used a "nautilus" outward spiral pattern, which took a number of events to set up, but I think someone could set up something with trigonometry to do the same.

    Alternately, you could try making a loop to set the detector to random X/Y coordinates, and stop the loop when it finally finds an open space.

  3. #3
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module
    Verbage's Avatar
    Join Date
    Dec 2010
    Location
    Lakewood, CO, USA
    Posts
    233
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well, what my goal was, was to place an object at the position of the first tile revealed. Then, in the fast loop, have it NOT place a bomb at a tile where the object was overlapping.

  4. #4
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module
    Verbage's Avatar
    Join Date
    Dec 2010
    Location
    Lakewood, CO, USA
    Posts
    233
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Also, to make it clearer, the goal is it to NOT generate a bomb at the point of first touch (bombs do not generate until a tile is revealed).

Similar Threads

  1. Nowhere Safe 2
    By redpandagames in forum Released Games & Apps in Flash
    Replies: 0
    Last Post: 16th May 2013, 04:53 PM
  2. Minesweeper Source
    By maVado in forum File Archive
    Replies: 5
    Last Post: 1st October 2012, 02:14 AM
  3. MineSweeper and Golf
    By kinase in forum iOS Released Games & Apps
    Replies: 1
    Last Post: 23rd June 2012, 10:41 PM
  4. Minesweeper Help
    By Verbage in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 10th March 2012, 04:22 AM
  5. move safe
    By looner in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 7th June 2007, 09:46 AM

Posting Permissions

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