User Tag List

Results 1 to 6 of 6

Thread: limiting events

  1. #1
    No Products Registered

    Join Date
    Oct 2009
    Posts
    506
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    limiting events

    i want to be able to limit an event:

    player smashes vase a bonus appears and player can pick it up.

    im now moving between frames back and forth how do i limit the event so i can not pick it up again.


  2. #2
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)

    Re: limiting events

    once a playerpicks it up,set a Global Value to 1.

    In the event:

    Player overlaps object
    >Destroy Object
    >Set Global Val A to 1

    Global Value A =1
    >Only one action when event loops
    >Object: Destroy

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  3. #3
    No Products Registered

    Join Date
    Oct 2009
    Posts
    506
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: limiting events

    thanks what if i want to pick it up again in a different place?

  4. #4
    No Products Registered

    Join Date
    Jul 2009
    Posts
    75
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: limiting events

    Here is a quick example (I made a while back for someone else) that uses the array to keep track of which items have been picked up.

    The events in the two frames are nearly identicle... For the second frame, I cloned the first frame and changed the "next frame" event to "jump to frame 1". This was only to illustrate that the array will keep track of the items from frame to frame.

    Alien Collects Stars

    /edit/

    I wrote this some time ago... I didn't know much about fastloops at the time. I just looked at the events and saw some ways to make it better.

    Event 11 and the Global Value labeled "Kill Counter" can be deleted.

    Change the second event on line 12 to
    ID of ("Star")=loopindex("Kill Loop")

  5. #5
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)

    Re: limiting events

    I would use a completely different object and set a different Global Value.

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  6. #6
    No Products Registered

    Join Date
    Oct 2009
    Posts
    506
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: limiting events

    hi thanks for the file i made the changes you suggested and run the app.

    i only left 1 star in the fist frame and left the all the stars in the second one.
    so if i pick up the star in the first frame go to the second pick these all up and retun to the first frame the star reappears and i can pick it up again.

    what i want is if you pick it up and go back it stays destroyed and you cannot go back and pick it up on each visit.

    the pick up in question is part of a task you must collect a specified number to complete the task so i dont think i could use a different active like nivam suggested.

    can you help?

    thanks for the example

Similar Threads

  1. Limiting an Angle
    By King_Cool in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 1st May 2013, 09:37 AM
  2. Limiting joystick to up down left right
    By Renatos in forum iOS Export Module Version 2.0
    Replies: 2
    Last Post: 26th April 2012, 11:21 AM
  3. Limiting digits
    By MechatheSlag in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 27th February 2009, 06:20 AM
  4. Limiting Jumps
    By dsilvers in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 3rd February 2009, 02:02 AM
  5. Limiting onscreen projectiles
    By adamwalker13 in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 21st October 2008, 07:42 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
  •