User Tag List

Results 1 to 2 of 2

Thread: 2 Problems - Working Around OR's/How to Create Individual AI?

  1. #1
    Clicker Multimedia Fusion 2
    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)
    ZycroNeXuS's Avatar
    Join Date
    Dec 2013
    Location
    Everywhere
    Posts
    60
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    2 Problems - Working Around OR's/How to Create Individual AI?

    I'm trying to create a rudimentary stealth game just to see if I can, really. The enemies have been the focal point of my issues. They work as follows: An invisible line connecting the Player and the Enemy objects. If the line is overlapping a wall or shadows, or if the player is overlapping shadows, the enemy stays put. However, if none of those things are true, the enemy will charge at you. Stepping back into the shadows will stop them.

    This is how it would work ideally, anyways.

    The enemy does charge at you, but only if you're not standing in shadows - whether or not there's a wall in the way doesn't matter. My events for handling this are as follows:

    (Negated) Line is overlapping Wall
    (Negated) Line is overlapping Shadows
    (Negated) Player is overlapping Shadows
    -> Set Spotted (the AV that controls whether the enemy attacks or not) to 1

    Line is overlapping Wall
    OR
    Line is overlapping Shadows
    OR
    Player is overlapping Shadows
    -> Set Spotted to 0

    So far as I can tell, this should work. However, it will not. Any ideas on this?

    Also, if I have more than one enemy, each with their own line, the enemies will not work because at least one of them always has a line in the shadows. For some reason, despite spreading values, MMF2 thinks that each line is the same object. My events are the same as above.

    I will of course provide more details if needed, and thanks in advance!

    -Ethan

  2. #2
    Clicker 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)

    Join Date
    May 2015
    Posts
    35
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Hm... it might help to make the last three their own event rather than one.

    Line is overlapping Wall
    ->Set Spotted to 0
    Line is overlapping Shadows
    ->Set Spotted to 0
    Player is overlapping Shadows
    ->Set Spotted to 0

    I remember having a similar issue. It took a bit of adding some conditions, removing others, and changing the position of the event itself until it finally worked.

    One thing I do know is that MMF is basically looking at it this way for multiple enemies: "Oh, A line is overlapping a shadow/wall? Make all of them stop!" I'm kind of brain-dead right now, so I can't give a more specific example, but it's all about how MMF looks at the event. It'll narrow down it's possibilities until there's nothing left to do, then it'll execute the action. So if you have at least one line of the same line item overlapping a wall/shadow, it'll affect all enemies present. Try making its selection of objects to do things with more specific.

Similar Threads

  1. Create by Name - Not working.
    By AlanRuno in forum Android Export Module 2.5
    Replies: 6
    Last Post: 23rd May 2016, 09:42 PM
  2. Create on destroy working strangely
    By mobichan in forum Fusion 2.5
    Replies: 12
    Last Post: 25th November 2014, 08:02 AM
  3. How to create a working 3D game?
    By XStar in forum Multimedia Fusion 2 - Technical Support
    Replies: 35
    Last Post: 24th May 2012, 06:22 PM
  4. Problems working through The Lab tutorial...
    By mobichan in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 23rd March 2008, 06:51 AM
  5. how to create an individual active object.
    By gamer4fun in forum Multimedia Fusion 2 - Technical Support
    Replies: 14
    Last Post: 4th June 2007, 01:21 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
  •