Platform behavior deactivated and true condition problem

  • Hello, in this capx is created a sprite object with platform behavior disabled by default.

    When you hit the space key, a new object is created that collides with a solid.

    Although the object has platform behavior disabled, the condition "Platform is on floor" remains true.

    Is this correct ?, I find it strange, the condition should be false if the object has the platform behavior disabled.

    https://dl.dropboxusercontent.com/u/60803633/testPlatform.capx

  • Are you sure the new created Platforms are also disabled? Or just the ones that are in the Layout, since Construct will mostly use the settings that are applied to one Object that is compatible with the whole Project. To see that you would select the Sprite2 while viewing an event sheet. That way it will look at select EVERY Sprite2 you have in the Project.

    or try to set them to false by triggering the "On Create" Event

  • The default value for platform behavior is disabled, so I would say this could be some kind of error.

  • There is a settng for collisions and one for platform behavior. The platform behavior can be activated with or without collisions.

  • Thanks for the info.

    What does it mean to activate it without collisions ?.

    What is the use?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks for the info.

    What does it mean to activate it without collisions ?.

    What is the use?

    You would use that if your character was a platformer but you want to turn off collions for maybe walking through a wall or other effect. The platform behaviors all still work but no collisions detected.

  • Thanks again, I want to do some tests on that to finish understanding it.

  • Thanks again, I want to do some tests on that to finish understanding it.

    Some games also use more than one movement behavior for a character so you could have platform and car behavior or physics behaviors all on the same character and you need collision detection for all three but you can turn off the movement behaviors seperately.

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