User Tag List

Results 1 to 5 of 5

Thread: Limit number of projectiles a player can launch?

  1. #1
    No Products Registered

    Join Date
    Dec 2015
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Limit number of projectiles a player can launch?

    My game allows a player to roll a ball. I'd like the player to only be able to roll one time until the ball leaves the screen then the player can roll again. To roll a ball I have the player press the spacebar. Everything works fine but if you press the spacebar very quickly the game will roll numerous balls and I'd like there to always only be one available for the player to roll. Thanks for any suggestions!

  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)
    Hi AVRe. Only allow the action if "last ball is destroyed".

    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
    Dec 2015
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks, sounds perfectly logical but where on event editor do I include that "if" statement? It is a keypress action. Is there somewhere I can "never allow spacebar keypress" if ball is visible? I'm pretty new to this but learning. Thank you.

  4. #4
    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)
    When you make your projectile and put it on the screen, un-check "create at start".

    Last projectile has been destroyed
    *Set flag 1 on

    Player pushes Space Key
    +Flag 1 is on
    *Create projectile at the active.

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

  5. #5
    Clicker Fusion 2.5Fusion 2.5 MaciOS Export ModuleInstall Creator Pro
    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)
    advaith's Avatar
    Join Date
    Jun 2015
    Location
    SF Bay Area, California, USA
    Posts
    1,324
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by AVRe View Post
    Thanks, sounds perfectly logical but where on event editor do I include that "if" statement? It is a keypress action. Is there somewhere I can "never allow spacebar keypress" if ball is visible? I'm pretty new to this but learning. Thank you.
    You add extra conditions by right-clicking the condition and clicking "Insert".

    Conditions (Launch ball: Spacebar; ball gets destroyed):

    * Upon Pressing "Space bar"
    + Number of Active= 0

Similar Threads

  1. There a limit to the number of ini files an IOS app can have/make?
    By BrashMonkey in forum iOS Export Module Version 2.0
    Replies: 4
    Last Post: 19th December 2013, 08:42 AM
  2. Group number limit?
    By Pandora in forum Multimedia Fusion 2 - Technical Support
    Replies: 12
    Last Post: 28th March 2008, 09:25 PM
  3. limit edit box to number only
    By Anfini in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 10th December 2007, 07:07 AM
  4. Number of objects limit?
    By Pedro Almeida in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 14th October 2006, 03:17 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
  •