User Tag List

Results 1 to 5 of 5

Thread: Platformer AI: Triggers not responding sometimes

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator ProPatch Maker

    Join Date
    Jun 2006
    Location
    Norway
    Posts
    528
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Platformer AI: Triggers not responding sometimes

    I've made some enemy "AI" that's supposed to walk left and right and change direction when it's collides with an obstacle.

    Problem is, sometimes the detectors fail and an enemy gets lost inside a wall.

    Can anyone see what I am doing wrong?

    You can download my file here

    Hold "C" to create more enemies. The bug is more common when there are over 100 enemies, but not restricted to such high instance count.

  2. #2
    Clicker Fusion 2.5 Developer

    Join Date
    Jul 2008
    Location
    UK
    Posts
    1,341
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)

    Re: Platformer AI: Triggers not responding sometimes

    https://skydrive.live.com/self.aspx/Public/EnemyLeftRightFIXED.mfa?cid=b1e7ee094271bbda&sc=do cuments

    I don't know what the problem was exactly, but I replaced the parts with spread values / IDs, and it now works fine.

    btw: You should also untick "timer based movements" in frame properties.

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator ProPatch Maker

    Join Date
    Jun 2006
    Location
    Norway
    Posts
    528
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Platformer AI: Triggers not responding sometimes

    This is great, thanks a lot!

    What is Timer based movements- and what happens when you untick it? Why is it ticked as default?

  4. #4
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: Platformer AI: Triggers not responding sometimes

    It makes the built-in movements move based on a timer rather than the frame rate. No matter what the framerate they will move the same amount in the same time period. This is often a bad thing for sensitive code that relies on certain things being in certain places in certain frames, because framerate randomness can throw it off very easily.
    Working as fast as I can on Fusion 3

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator ProPatch Maker

    Join Date
    Jun 2006
    Location
    Norway
    Posts
    528
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Platformer AI: Triggers not responding sometimes

    Ok I think I get it, thanks!

Similar Threads

  1. [Bug] beta 33 - certain keycodes not responding
    By colej_uk in forum Android Export Module Version 2.0
    Replies: 0
    Last Post: 15th September 2012, 01:16 PM
  2. Not responding
    By Denzof in forum Install Creator and Patch Maker
    Replies: 2
    Last Post: 5th September 2012, 05:49 AM
  3. Xbox 360 Triggers and D-Pad
    By Sumo in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 1st February 2010, 06:50 PM
  4. The events triggers at the same time
    By Attan in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 25th September 2007, 04:38 PM
  5. Map editor 'triggers'
    By LazyCoder in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 11th September 2006, 12:29 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
  •