User Tag List

Results 1 to 4 of 4

Thread: Get "Pick one object" to stop after one object

  1. #1
    Fly
    Guest

    Get "Pick one object" to stop after one object

    I'm making a game where a marker will appear in a random coordinate, and the player has to click it to make it disappear so a new marker will spawn. Right now, I have a grid of all my marker objects, and I've set them all Invisible. I've set up the function:

    Pick one of [marker object] (at random) = [marker object] Reappear

    Thing is, this makes it CONSTANTLY pick an object and make it reappear, and I want it to only do this once (then, when there's no objects, spawn another one).

    How do I do this? And if I can't, is there an easier way?

  2. #2
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    mobichan's Avatar
    Join Date
    Oct 2007
    Location
    Buffalo, NY
    Posts
    3,310
    Mentioned
    28 Post(s)
    Tagged
    0 Thread(s)

    Re: Get "Pick one object" to stop after one object

    You can use a counter object and set it to 1 every time you pick a random object. Then when you destroy the object, set the counter to 0. Then add another condition to your "pick random" event that checks if the counter = 0.

    Mobichan

  3. #3
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Get "Pick one object" to stop after one object

    Depending on the other events in your game, you might also be able to just use "Only one action when event loops" - right-click on an event to Insert a new condition, then go to the Special object (first one in the list), and it's in "Limit conditions".

  4. #4
    No Products Registered

    Join Date
    Oct 2010
    Location
    Utah
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Get "Pick one object" to stop after one object

    I like to create an invisible bouncing ball that creates a new object relative to it when there are none left. The snakes example also has another method that you might want to look at.

Similar Threads

  1. Question fonction "pick object"
    By Tessier in forum Multimedia Fusion 2 - Technical Support
    Replies: 26
    Last Post: 28th July 2013, 12:32 AM
  2. Issues with "Clickteam Movement Controller" and "Runtime" Object
    By jimmyorpheus in forum iOS Export Module Version 2.0
    Replies: 1
    Last Post: 29th November 2011, 07:10 AM
  3. "Pick One Object" with Conditions?
    By Nippe in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 13th October 2011, 11:27 AM
  4. No "sounds over frames" & "Stop sample" crash
    By Giovanni_Cardona in forum iOS Export Module Version 2.0
    Replies: 1
    Last Post: 5th November 2010, 01:48 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
  •