User Tag List

Results 1 to 2 of 2

Thread: Help me understand how to use Alterable Values.

  1. #1
    Clicker Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export Module
    Emerson3's Avatar
    Join Date
    Apr 2014
    Location
    Lafayette, Louisiana
    Posts
    721
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Question Help me understand how to use Alterable Values.

    Hey Clickteam,

    I'm a year into Fusion 2.5 with an unquenchable thirst for digging and learning everything I can to master this wonderful, fun creation. Today I want to ask about Alterable Values. When I first started learning Fusion, I began with the tutorials. The tutorials are great but I find they cover the bare minimum of certain features. For example, the alt values tutorial explains how to apply health to enemies and how to destroy instances of each enemy when their alt value = 0. Now, that is awesome and I definitely use this when I'm applying health but living in the forums and reading examples and looking at MFA's, there are obviously millions of ways to use Alt Values to do a whole bunch of cool, crazy stuff! One thing for example is moving platforms vertically, horizontally, diagonally all with Alt. Values. I guess I'm asking for tips, videos, explanations, theories, examples, and more to help not only me but any newer user learn the power of Alterable Values in MMF2.5! Thanks Clickers!

  2. #2
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module

    Join Date
    Oct 2006
    Posts
    270
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    There's countless ways to use them. My favorite is AI chains. Forgive the clumsy coding below to explain the idea

    If Enemy attack = "True"
    Set Val A to 50
    Val A > 0 - Subtract 1 from Val A
    Val A = 49 - Look at player
    Val A = 15 - Shoot Player
    Val A = 0 - Set Enemy Attack "False"

    It's possible to set up very complicated AI patterns by setting a few AI chains up to work within conjunction. It's also possible to have randomized behaviors within these AI Chains; again forgive the clumsy explanation.

    If Enemy attack = "True"
    Set Val A to 50
    Val A > 0 - Subtract 1 from Val A
    Val A = 49 - Subtract Random (4) from Val A
    Val A = 48 - Shoot Player, Set Val A to 45
    Val A = 47- Shoot Player, Set Val A to 45
    Val A = 46 - Stop Movement, Set Val A to 45
    Val A = 15 - Shoot Player
    Val A = 0 - Set Enemy Attack "False"

    Basically in the above, the enemy has a 1/3 chance of stopping when he's Attacking instead of shooting.

    I hope these clumsy explanations have helped.

Similar Threads

  1. Global Values & Alterable Values with same names
    By Gustav in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 7th November 2012, 06:15 PM
  2. Alterable Strings as Alterable Values?
    By King_Cool in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 27th March 2012, 07:14 PM
  3. Display values on screen from Alterable Values
    By mikeh in forum The Games Factory 2 - Technical Support
    Replies: 2
    Last Post: 13th May 2008, 01:59 PM
  4. Alterable Strings and Alterable Values limit :(
    By Pedro Almeida in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 13th October 2006, 06:38 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
  •