User Tag List

Results 1 to 4 of 4

Thread: Multiple numbers in expression editor

  1. #1
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleUnicode Add-on
    Boba Fonts's Avatar
    Join Date
    Jan 2009
    Location
    Northern Italy
    Posts
    228
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Multiple numbers in expression editor

    I suppose it's a VERY stupid question, but...
    Let's say I want to give an extra life to the player when he surpasses 70,000 points, then every other 70,000 points indefinitely (when the score exceeds 140,000, 210,000, 280,000, 350,000, etc.).
    How can I deal with multiples of a base number in a single event in the expression editor?

  2. #2
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform 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)
    DaveC's Avatar
    Join Date
    Jun 2007
    Location
    Perth, Australia
    Posts
    2,132
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    You could use 2 values, the first called 'bonus target' and the second called 'next bonus' (set to 1 initially)

    Then have an event always set bonus target to 70,000 * 'next bonus'

    Now your main event conditions:
    Player score >= bonus target
    + only one action when event loops

    Actions:
    Add 1 life
    Add 1 to next bonus

    Now the bonus target will be 140,000 (next bonus is 70,000 * 2) when 140,000 is surpassed next bonus will be 70,000 * 3 and so on.

  3. #3
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleUnicode Add-on
    Boba Fonts's Avatar
    Join Date
    Jan 2009
    Location
    Northern Italy
    Posts
    228
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks!

  4. #4
    Clicker Fusion 2.5

    Join Date
    Apr 2015
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi, thanks for your post, I appreciate it, I have but a few questions for you: Are the two values in one active object or one of the values in 2 active object.. because I did exactly as you said, and what it does is
    lets say multi by 50 it keeps it at every fifty event though I said to add 1 to bonus target every time, can you help me out, I am really frustrated here, thank you !

Similar Threads

  1. Val vs. Value (expression editor)
    By Pineapple in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 28th December 2013, 06:19 PM
  2. using a range of numbers in expression editor
    By takki in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 8th May 2011, 11:10 PM
  3. Using Log in the expression editor.
    By keokeo in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 29th November 2010, 03:44 PM
  4. Expression Editor and Icon Editor
    By OldGuy in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 27th September 2008, 01:21 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
  •