User Tag List

Results 1 to 6 of 6

Thread: Whack a mole tutorial

  1. #1
    No Products Registered

    Join Date
    Feb 2012
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Whack a mole tutorial

    I am looking to build a game similar to whack a mole. I want an object to randomly appear in one of six locations and then give points when a key is pressed if that object is present. The object will disappear after a random period of time.

    Could someone give me some direction to start....

  2. #2
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    TheSynapse's Avatar
    Join Date
    Jun 2011
    Location
    London, UK
    Posts
    100
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    For the six locations you could use 6 invisible active objects. Use the spread value function to number them within an alterable value they all share. You'd create one active, name the variable, clone it, then place them in the six required places.

    Use the timer function and a counter to set a random number every second or so. Remember base number is one more than the max that could be generated (e.g. Random(5) will generate numbers 0-4).

    Then at each time interval have your moles appear at the same location as the randomly selected invisible object, then disappear after a certain time. Whenever you click on a mole, you increase your score.

    Hope that gets you started. If you have graphics ready to go that shouldn't take very long at all.

    I'm not very experienced in MMF2 yet, so someone else may well suggest a more elegant/efficient way to do it.

  3. #3
    No Products Registered

    Join Date
    Dec 2010
    Location
    Indonesia
    Posts
    85
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi, I'm interested in making one too...

    "For the six locations you could use 6 invisible active objects. Use the spread value function to number them within an alterable value they all share. You'd create one active, name the variable, clone it, then place them in the six required places.

    Use the timer function and a counter to set a random number every second or so. Remember base number is one more than the max that could be generated (e.g. Random(5) will generate numbers 0-4)."

    I don't quite get it..Can you explain more? Where should it set etc?

  4. #4
    Clicker Fusion 2.5iOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    SolarB's Avatar
    Join Date
    Feb 2012
    Location
    Melbourne
    Posts
    904
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Another way is to have one active, duplicate it 6 times and put it in your locations. Make them invisible.

    Then use restrict actions (special - limit - restrict actions) and use a calculation - random (2000)+1000 or whatever (this will restrict the action to 1 second plus a random interval between 0 and 1999ths of a second). Add 'pick object at random' to this event - this will choose a random location active that you can then set your mole's position to.

    It's relatively easy to figure out the rest

  5. #5
    No Products Registered

    Join Date
    Dec 2010
    Location
    Indonesia
    Posts
    85
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi, thank you for answering

    I'm sorry, I know this is a stupid case...I tried to make one sample, but I can't do it right
    I am a designer, so programming language is very confusing for me @.@
    I've tried the basic tutorial for MMF and done it well, but when I attached them to my game I'll become confused.

    Here's the link for my work
    http://www.mediafire.com/?y8tu6bg8gellmdy

    Thank you

  6. #6
    Clicker Fusion 2.5iOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    SolarB's Avatar
    Join Date
    Feb 2012
    Location
    Melbourne
    Posts
    904
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Here's a quick example:

    molewhack.mfa

Similar Threads

  1. Free action-puzzle: Moly Mole
    By JoKa in forum iOS Released Games & Apps
    Replies: 10
    Last Post: 9th February 2013, 07:28 AM
  2. Whack Em World Tour - Lite
    By Jeff in forum iOS Released Games & Apps
    Replies: 0
    Last Post: 4th August 2011, 02:14 PM
  3. [Tutorial] Using .NET in your App.
    By BackStaged in forum Articles
    Replies: 4
    Last Post: 5th September 2010, 05:24 AM
  4. TCP IP \ LAN tutorial
    By Fant in forum Multimedia Fusion 2 - Technical Support
    Replies: 22
    Last Post: 2nd April 2009, 04:14 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
  •