"Is on floor" property is not detected correctly

Bugs will be moved here once resolved.

Post » Sun Dec 14, 2014 3:21 pm

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)
B
14
S
4
G
2
Posts: 109
Reputation: 2,679

Post » Sun Dec 14, 2014 3:56 pm

Having a Platform behavior and a solid behavior makes no sense. Maybe that's the issue.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
134
S
30
G
84
Posts: 5,379
Reputation: 58,440

Post » Mon Dec 15, 2014 1:20 am

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)

Image

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:

Image

:(
B
14
S
4
G
2
Posts: 109
Reputation: 2,679

Post » Fri Dec 19, 2014 5:55 pm

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').
Scirra Founder
B
395
S
232
G
88
Posts: 24,371
Reputation: 193,762

Post » Fri Dec 19, 2014 8:58 pm

Can to use various behaviors together without issue would be great!
B
14
S
4
G
2
Posts: 109
Reputation: 2,679


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 1 guest