User Tag List

Results 1 to 4 of 4

Thread: Enemy collisions

  1. #1
    Clicker Multimedia Fusion 2 DeveloperiOS 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)
    King_Cool's Avatar
    Join Date
    Aug 2008
    Posts
    2,335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Enemy collisions

    Hi, lets say i have about a hundred enemy objects bouncing around in my frame.

    How would i make sure the objects 'never' overlap eachother?

  2. #2
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Jaffob's Avatar
    Join Date
    May 2008
    Location
    USA
    Posts
    1,833
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Enemy collisions

    What do you mean? If you want them to deflect each other when they hit, you can do:

    Code:
    Enemy collides with Enemy:
    ---Enemy: Bounce
    If you want them to turn away from each other to avoid ever hitting, then it's sort of impossible because with 100 objects, there would probably not be room to do that.

  3. #3
    Clicker Multimedia Fusion 2 DeveloperiOS 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)
    King_Cool's Avatar
    Join Date
    Aug 2008
    Posts
    2,335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Enemy collisions

    Hmm
    I used this method making moving objects (or just objects) NEVER get stuck in walls...

    I did this by storing their X and Y in Xmemory_ and Ymemory_ when NOT overlapping a backdrop. Then, as son as they did overlap a backdrop, they would just reposition to their X and Y memory_

    I tried applying the same to enemy objects bouncing around, but it didnt seem to work.
    Now im just curious as to how other people have solved this proble, so it may give me an idea or solution.

    I went over an old post, and read something about TimerBasedMovement, maybe that could be relevant? idk
    Nevertheless i would like to hear how others have addressed the issue of enemy collisions

  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: Enemy collisions

    Well, you could try and find the agnle between the overlapping enemies and move them away from eachother with a 360 degrees movement. Of course this would be pretty complicatd and it's probably better to just use the boucne action.
    Working as fast as I can on Fusion 3

Similar Threads

  1. Strange thing: If Enemy Alterable Value A = Enemy Alterable Value B
    By King_Cool in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 26th March 2012, 05:29 PM
  2. Enemy collisions for a Grid based movement
    By Atherton in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 2nd January 2010, 06:32 PM
  3. Collisions.
    By Conno in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 22nd November 2006, 06:02 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
  •