User Tag List

Results 1 to 6 of 6

Thread: Collision in custom 360 movement

  1. #1
    No Products Registered

    Join Date
    Oct 2006
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Collision in custom 360 movement

    Hi, again with the freaking 360 movement.

    The problem now is that I don't know how to stop the movement when the character collisions to a wall.
    Another thing...must I make those 4 "collision lines" that move with the character?, dont know if you understand...
    Thanks

  2. #2
    No Products Registered

    Join Date
    Jul 2006
    Location
    Texas
    Posts
    1,225
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Collision in custom 360 movement

    4 collision lines? What are you on about?

  3. #3
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Collision in custom 360 movement

    "Collision lines" refers to the collision detectors that are placed around the character so that it can be stopped when it reaches a wall.

    Having collision detectors is certainly one of the easiest ways to do it, though you may not need them if your engine uses fastloops.

  4. #4
    No Products Registered

    Join Date
    Oct 2006
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Collision in custom 360 movement

    okey...I meant collision detectors.
    I dont really know how to use fastloops or why would I use them.
    But my main problem is that I don't know how to deny movement to the character when it is walking against a wall.
    I used the 360º movement using Sin and Cos, but how do I restrict movement over walls?

  5. #5
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Collision in custom 360 movement

    It's a bit difficult to say without looking at the whole engine - it varies so much. But the basic idea is to detect when a player collides with a wall as a result of its movement, and if so, to either prevent it from moving in the first place or to move it back by the same amount that it moved.

  6. #6
    No Products Registered

    Join Date
    Oct 2006
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Collision in custom 360 movement

    ohh..wait...right, preventing to move if is in collision.
    So I have to say:
    + When player press "up" and is not in collision: move up.

    Thanks davidn.

Similar Threads

  1. Custom Movement Collision
    By Nathanial_B in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 24th February 2012, 09:36 AM
  2. Custom movement Qualifier collision bug
    By Fanotherpg in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 23rd February 2012, 08:57 PM
  3. Custom Backdrop Collision Help
    By Martin_Bodger in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 26th May 2008, 09:49 PM
  4. Custom movement -- collision detection problem
    By Poprocks in forum File Archive
    Replies: 1
    Last Post: 17th May 2007, 12:58 AM
  5. Custom Movement and Collision System
    By Random in forum File Archive
    Replies: 11
    Last Post: 23rd August 2006, 07:05 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
  •