User Tag List

Results 1 to 7 of 7

Thread: Collision Isuues

  1. #1
    No Products Registered

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

    Collision Isuues

    Hi,

    I am working on a game that does not use Clickteam's movements. I am looking for a way to have my objects collide with something and then have them stop and still be able to move. Any ideas or suggestions? Also, my game is NOT grid based so that also puts me at sort of a disadvantage.

    -Thanks, Variant

  2. #2
    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 Isuues

    You back the object out manually. For example, if the character is moving Right and overlaps an obsticle set the x of player x -1 after the player stops.

    It is also best to use a collision box, always place the character at 0,0 in the box, and move the collision box and not the character.

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

  3. #3
    No Products Registered

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

    Re: Collision Isuues

    That's a great idea, but I am not sure how it could be done. Do you have an example perhaps? Also, my player rotates, so the collision box itself could not be moving.

    -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 Isuues

    My custom movement example backs the collision box away from the frame sides. I also have other examples that contain character movement.

    Why can't you use a collision box. Your player rotating should have no effect, unless your hot spots are all over the place. You can still rotate your player even though the movement is to the box. That metod is even better still if your character rotates. That way the player can't get stuck in a wall or off the screen, or in a backdrop.

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

  5. #5
    No Products Registered

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

    Re: Collision Isuues

    I suppose I could try it, by the way which of your examples are you referring to?

    EDIT:

    Also, the collision mask has to be divisible by the frame size right?

    EDIT AGAIN:

    And my player is moved by the mouse and uses the MoveIt extension. I really don't know how this will work.

    -Thanks, Variant

  6. #6
    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 Isuues

    Not sure either, because I do a lot of custom movement and fastloop movement stuff. I don't know about "the collision mask has to be divisible by the frame size" mumbo jumbo". No, a collision box is just a square box that your character is centered in, and you set the movement to the box, no matter what method you are using to move it. That way when a character rotates the arms and legs don't get stuck.

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

  7. #7
    No Products Registered

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

    Re: Collision Isuues

    Okay, I managed to get the player to stop, but if you force him to move towards the point he will bounce off the object. I don't really want my player to bounce. Any ideas?

    -Thanks, Variant

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
  •