User Tag List

Results 1 to 3 of 3

Thread: Curious why this doesn't work. Probably an obvious answer.

  1. #1
    Clicker

    Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCHTML5 Export ModuleiOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)Universal Windows Platform Export Module (Steam)
    ratty's Avatar
    Join Date
    Apr 2012
    Posts
    1,165
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)

    Curious why this doesn't work. Probably an obvious answer.

    I hope this programming is clear and easy to follow. I'm trying to learn what is going on here so I can better my MMF skills. Basically, I'm trying to make a somewhat turn-based system here. When you press left or right, the AI makes the green active decide to move towards you or wait, based off a simple roll. The thing is, no matter what I try, I can't get it to automatically wait if you are right next to the green active when you move. It says it should wait (based off the alterable string) but it doesnt. It just follows right in your footsteps. Any idea why? I've tried so many approaches and cant seem to figure it out.

    Left/Right: move
    1/2: move 3 spaces.

    PRPG02.mfa

  2. #2
    No Products Registered

    Join Date
    Apr 2013
    Posts
    68
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The "wait" alterable string is set only if the player and enemy are next to each other. If you move away from the enemy, then that's no longer true and the "command" will change to move left/right and then executed. Easiest way to fix this would probably be to set AltValA of enemy to 2 when he's next to player, that would make him "skip" his next move. But that would depend on what you are planing to do with that value later(maybe it will be used to time attack or something like that).

  3. #3
    Clicker

    Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCHTML5 Export ModuleiOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)Universal Windows Platform Export Module (Steam)
    ratty's Avatar
    Join Date
    Apr 2012
    Posts
    1,165
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    Ah, now I see it. Thanks! Setting the value to 2 probably won't work for what I'm trying.

Similar Threads

  1. Anyone get Question and Answer object to work in Flash?
    By Hazard159 in forum SWF/Flash Export Module Version 2.0
    Replies: 4
    Last Post: 30th January 2012, 03:30 PM
  2. Why doesn't this work?
    By kungsangun in forum File Archive
    Replies: 8
    Last Post: 17th December 2008, 05:54 PM
  3. Problem with an angle, answer is probs obvious =/
    By Raylax in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 14th June 2008, 01:06 AM
  4. Why doesn't this work?
    By kungsangun in forum File Archive
    Replies: 5
    Last Post: 8th July 2006, 01:37 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
  •