"Is on floor" property is not detected correctly

0 favourites
  • 5 posts
From the Asset Store
2D fighting template based in the game that defined the fighting games genre.
  • Problem Description

    Hello.

    There is an specific situation when Is on floor property do not work properly, for example if you create an object(enemy) and set 2 behaviors: jump-thru and platform together, then this object falls over another object(object2) which have behaviors: jump-thru an sine(with vertical movement), and you jump with the main player (using platform behavior again) and fall over the first object(enemy) which is on the object 2 that is moving up and down, the Is on floor property is not detected correctly.

    Attach a Capx

    https://dl.dropboxusercontent.com/u/60873147/C2%20FORUM/bug_report_2/is%20on%20floor%20not%20detected.rar

    Description of Capx

    There is some objects each with a number 1,2,3,4, you also have a main player which you can move with arrows keys and jumping with arrow key up on those objects, there is an Text object that says or shows whether the player is on floor or not.

    Steps to Reproduce Bug

      jump over each object and you can see the Txt object shows whether the player is on floor or not.

    Observed Result

    When you are over object 2 Is on floor property do not work properly

    Expected Result

    should have not any problem I guess, since all other objects work fine.

    Affected Browsers

    • Chrome: YES
    • FireFox: YES
    • Internet Explorer: YES

    Operating System and Service Pack

    Windows 8.1 84bit

    Construct 2 Version ID

    release 192 (64bit)

  • Having a Platform behavior and a solid behavior makes no sense. Maybe that's the issue.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Yeah, that's true, but I have not many options to do this. I think that should be possible, because when the object enemy is over an solid object immovable (like tile map) and the main player is on enemy object (green box), the 'is on floor' property works fine, therefore the main player animations work fine as well:(notice the main player animation run appear)

    However when the enemy object is over the yellow object (which have sine behavior) and the main player goes above from enemy, the main player animation run do not appear, because the 'is on floor' property never is detected:

  • Closing as won't fix: the platform behavior is not designed to work on an object which is also solid or jumpthru, as the "2" object is. Workaround: either remove the Platform movement from the "2" object, or its jumpthru behavior, or don't rely on 'Is on floor' and use some other detection instead (e.g. 'is overlapping at offset').

  • Can to use various behaviors together without issue would be great!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)