User Tag List

Results 1 to 8 of 8

Thread: Stealth Mechanic: Now He Sees You, Now He Doesn't!

  1. #1
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCHTML5 Export Module
    TheFieryPlumber's Avatar
    Join Date
    Oct 2012
    Location
    Delaware
    Posts
    121
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Stealth Mechanic: Now He Sees You, Now He Doesn't!

    I was wondering how you can imitate a popular mechanic in MMF2...
    In the PNG file, it shows what I'm looking for...
    -There are Three Active Objects
    -Enemy
    -Sensor
    -Player
    I want to have the sensor act as the enemy's sight.
    So whenever the enemy comes across an obstacle like a backdrop, the sensor cuts like blind spots.
    Images attachées Images attachées

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

    Join Date
    Feb 2012
    Posts
    94
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Stealth Mechanic: Now He Sees You, Now He Doesn't!

    You can make the Enemy throw invisible objects to the Player (the objects, let's call it Detectors, are destroyed when they touch an obstacle or go too far away). If a Detector touches the Player, then the Enemy sees him.

    I saw an example MFA of that somewhere, but I don't remember where. Sorry and happy coding !

  3. #3
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCHTML5 Export Module
    TheFieryPlumber's Avatar
    Join Date
    Oct 2012
    Location
    Delaware
    Posts
    121
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I don't fully understand what you're saying.
    If you mean having the enemy constantly throw detectors at the player's direction that is destroyed when it passes the sensor or touches an obstacle, then having the enemy activate if the detectors collides with the player, I'm not sure if that would be executed flawlessly but it could work.

  4. #4
    Clicker Multimedia Fusion 2 DeveloperAndroid 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)

    Join Date
    Feb 2012
    Posts
    94
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by TheFieryPlumber View Post
    If you mean having the enemy constantly throw detectors at the player's direction that is destroyed when it passes the sensor or touches an obstacle, then having the enemy activate if the detectors collides with the player, I'm not sure if that would be executed flawlessly but it could work.
    Yep, I was thinking about that. Just do some tests and you will find some kind of solution.

  5. #5
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCHTML5 Export Module
    TheFieryPlumber's Avatar
    Join Date
    Oct 2012
    Location
    Delaware
    Posts
    121
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I was thinking more of a flashlight effect; but if that's the only way for an enemy to track a player down, I’ll take it.

  6. #6
    Clicker Multimedia Fusion 2 DeveloperAndroid 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)

    Join Date
    Feb 2012
    Posts
    94
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Stealth Mechanic: Now He Sees You, Now He Doesn't!

    Quote Originally Posted by TheFieryPlumber View Post
    I was thinking more of a flashlight effect; but if that's the only way for an enemy to track a player down, I’ll take it.
    I didn't think about it ! A flashlight effect is feasible, maybe with combining detectors and a flashlight sprite.

  7. #7
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLC

    Join Date
    Jul 2008
    Location
    UK
    Posts
    1,553
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    Firstly, you scrap the big circular detector.
    The normal method is to use a 1x1 pixel detector object, and stretch / rotate it so that it forms a line between the enemy and the player - and then if that line overlaps an obstacle, you know the line of sight is blocked.
    There are a great many examples of this technique, which should be easy to find if you search.

    eg.
    http://www.create-games.com/article.asp?id=2137
    http://www.sketchy.co.nf/downloads/ZombieAI.mfa
    http://www.sketchy.co.nf/downloads/TeamLoS.mfa

    If you really want a visible flashlight beam, then try shadowcasting - but bear in mind it's complicated and may hurt performance. Again, there are plenty of examples around...

    eg.
    http://community.clickteam.com/threads/59100-Dynamic-Light-and-Shadow-Engine-4
    http://www.create-games.com/download.asp?id=8855
    http://www.sketchy.co.nf/downloads/PolygonShadows.mfa

  8. #8
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCHTML5 Export Module
    TheFieryPlumber's Avatar
    Join Date
    Oct 2012
    Location
    Delaware
    Posts
    121
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That's all the info I need! Thank you very much!

Similar Threads

  1. Create a wall-jump mechanic?
    By AndyBazooka in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 17th September 2013, 03:31 PM
  2. Stealth Camo Effect - Questions
    By Mantis in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 26th September 2012, 01:51 PM
  3. CA AV Plus sees my installers as <<viruses>>
    By hiline in forum Install Creator and Patch Maker
    Replies: 18
    Last Post: 22nd January 2010, 12:02 AM
  4. Setting up a stealth character
    By Wrider in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 21st July 2009, 06:13 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •