User Tag List

Results 1 to 4 of 4

Thread: Collision Example

  1. #1
    No Products Registered

    Join Date
    Oct 2009
    Posts
    480
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Collision Example

    Here is an example of a broken collision example. Related to other posts.

    -Thanks, Variant
    Attached files Attached files

  2. #2
    Clickteam Clickteam
    Anders's Avatar
    Join Date
    Jun 2006
    Location
    Denmark, Århus
    Posts
    3,456
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)

    Re: Collision Example

    I made a very different collision detection without any extensions (attached to this post)

    It works by allowing the collision detector be very jumpy and only worry about moving towards the goal when it isn't overlapping the obstacle. The 'player object's task is to smoothen out the movement of the detector. I did that by always making it move a fourth of the way from it's current position to the detectors position. It makes it accelerate and decelerate a little bit in the beginning and end.

    You can easily control how much it should smoothen out the movement of the detector by changing what you divide the difference with when setting the x and y coordinates of the player object (I used 4)

    This system works OK for guided movement directions to avoid simple obstacles.
    Attached files Attached files

  3. #3
    No Products Registered

    Join Date
    Oct 2009
    Posts
    480
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Collision Example

    Thank you. That works very well.

    -Variant

  4. #4
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)

    Re: Collision Example

    Thanks Andos. That is is good example.

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

Similar Threads

  1. [ Bug ] Collision-Bug
    By Pharanygitis in forum SWF/Flash Export Module Version 2.0
    Replies: 4
    Last Post: 18th March 2011, 08:52 AM
  2. Collision Help
    By Sumo in forum Lacewing
    Replies: 17
    Last Post: 19th November 2009, 07:02 AM
  3. Collision Bug
    By dragonguy in forum File Archive
    Replies: 4
    Last Post: 6th July 2008, 05:44 PM
  4. Collision Map?
    By BrandonC in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 13th September 2006, 08:42 AM
  5. Collision Bug
    By rocko in forum File Archive
    Replies: 5
    Last Post: 1st July 2006, 07:45 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
  •