User Tag List

Results 1 to 2 of 2

Thread: Help with wall collision in RPG!

  1. #1
    No Products Registered

    Join Date
    Jul 2018
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Angry Help with wall collision in RPG!

    So, I'm new to making games and am learning while I'm making my RPG. So, I managed to get collision working, but I've found a few bugs I have no idea to fix seeing as I'm new to all this and have no idea how anything other than simple stuff works. The player collides with backdrops above him and below him just fine, but can't properly collide with walls, because the player can't move in the other direction if they touch a wall on the left or right, so for example if the player walks into a left wall they can't move right to walk away and vice-versa. I've tried all the different settings for collision, and the ones that work best at the moment are no fine detection and player sticks to obstacles. Removing stick to obstacles makes it worse. My player uses the built in 8 directions movement and the only code so far at all is 'When touches backdrop, stop'. Obviously this doesn't apply to backdrops I haven't set to obstacles. What's different with a wall that makes this problem happen with it and not above or below collision, and can someone tell me how to fix it? Thanks a lot, this is really stopping the game from continuing production!

  2. #2
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export Module
    Janette5's Avatar
    Join Date
    Dec 2014
    Location
    Western Cape, SA
    Posts
    1,159
    Mentioned
    199 Post(s)
    Tagged
    0 Thread(s)
    I don't know how Fusion's built-in obstacles work but in general when a person collides with a wall you need to do three things - stop him, move him away from the wall (so that he is no longer colliding), turn him around so that he is now facing the other way.

    For example you'll put his position to x.position+2 or x.position-2 depending on which wall just to break the collision event - else that collision event keeps running and your player is stuck in that loop.

Similar Threads

  1. Replies: 0
    Last Post: 2nd October 2016, 02:20 AM
  2. Player shakes on collision with wall.
    By ethaniscurious in forum Fusion 2.5
    Replies: 7
    Last Post: 14th September 2016, 12:37 PM
  3. Small Wall Collision Problem
    By KryFuZe in forum Fusion 2.5
    Replies: 2
    Last Post: 1st July 2016, 06:33 PM
  4. OpenGL, 3D game and collision with wall
    By Grim in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 19th April 2011, 03:45 AM
  5. Bouncing object avoids collision (past wall)
    By RGBreality in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 26th May 2010, 04:07 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
  •