User Tag List

Results 1 to 7 of 7

Thread: Details on How Does the Overlap Function Works

  1. #1
    Clicker Fusion 2.5 (Steam)

    Join Date
    Jul 2014
    Posts
    92
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Question Details on How Does the Overlap Function Works

    Hi Everyone,

    I have been debugging my game to fix a problem where my character gets stuck in platforms. It doesn't happen often but randomly he gets stuck in a wall as he overlaps the wall. I move my player using fastloops one pixel at a time and do an overlap check with a detector prior to the movement. The problem occurs even without jumping.

    When debugging I recorded the left and right edge positions of my detector and the edges of object I am getting stuck in. The coordinates overlap but there is no overlap being detected by clickteam fusion 2.5. I feel like I'm losing my mind lol. Any ideas on why it is not catching the overlap? Note that the error is within a pixel.

  2. #2
    Clicker Fusion 2.5Fusion 2.5+ DLC
    casleziro's Avatar
    Join Date
    Mar 2013
    Location
    United States
    Posts
    679
    Mentioned
    14 Post(s)
    Tagged
    0 Thread(s)
    post an example of the bug

  3. #3
    Clicker Fusion 2.5 (Steam)

    Join Date
    Jul 2014
    Posts
    92
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    I have a detector that is 1 pixel by 1 pixel. Using a fast loop I scale it and position it infront of my player. In the next event of the fastloop I check for overlap with the detector. It is not detecting the overlap. I will post pictures of the relevant events. One second.

    PerpixelEvent.jpgDebug Variables.jpgBroadphaseevent.jpg

    Let me know if you can't read these because on my computer they look alot clearer I don't know why the forum degraded the quality of the attachments.

  4. #4
    Clicker Fusion 2.5 (Steam)

    Join Date
    Jul 2014
    Posts
    92
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Update: I have flags that go on and off after the fastloop movement. Also they record the edges of the detectors and the platform. The numbers show that the two objects overlap however the overlap condition is not activated.

    Does the check overlap condition not work if you take an object that is 1pixel by 1 pixel and scale it to the desired size then check for overlap in the same frame/fastloop?

    If anyone has answers I would love to hear them

  5. #5
    Clicker Fusion 2.5Fusion 2.5+ DLC
    casleziro's Avatar
    Join Date
    Mar 2013
    Location
    United States
    Posts
    679
    Mentioned
    14 Post(s)
    Tagged
    0 Thread(s)
    im not able to type out a long response right now because i had my keyboard break and am resorting to OSK. I think it very well might be the scaling, but im not sure. Does it only happen on specific sides, or is it universally inconsistent? Going out tomorrow for new KBD, hopefully King_Cool chimes in

  6. #6
    Clicker Fusion 2.5 (Steam)

    Join Date
    Jul 2014
    Posts
    92
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the reply. I'm starting to think now I have to program my own collision detection if I want my game to work

  7. #7
    Clicker Fusion 2.5Fusion 2.5+ DLC
    casleziro's Avatar
    Join Date
    Mar 2013
    Location
    United States
    Posts
    679
    Mentioned
    14 Post(s)
    Tagged
    0 Thread(s)
    check the other thread. i posted an example there.

Similar Threads

  1. I created a line of sight function that works with multiple enemies.
    By PlasmaVoid in forum Guides, Tutorials, Examples, Widgets
    Replies: 3
    Last Post: 31st December 2015, 03:07 AM
  2. Question about how overlap checks works
    By Outcast in forum Multimedia Fusion 2 - Technical Support
    Replies: 14
    Last Post: 17th June 2013, 10:24 AM
  3. Function Eggtimer problem // Power Function for MMF2 Android?
    By ogrgkyle in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 24th May 2013, 03:17 AM
  4. Object overlap - Overlap area
    By Ls2 in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 12th May 2012, 10:06 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
  •