Platform behavior deactivated and true condition problem

Discussion and feedback on Construct 2

Post » Wed Mar 15, 2017 5:06 pm

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

Image
B
29
S
12
G
20
Posts: 759
Reputation: 13,861

Post » Wed Mar 15, 2017 6:10 pm

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
When you just begin learning this Stuff, don't make big things. Start Small.
B
9
S
2
G
1
Posts: 29
Reputation: 1,077

Post » Wed Mar 15, 2017 11:16 pm

The default value for platform behavior is disabled, so I would say this could be some kind of error.
B
29
S
12
G
20
Posts: 759
Reputation: 13,861

Post » Wed Mar 15, 2017 11:23 pm

There is a settng for collisions and one for platform behavior. The platform behavior can be activated with or without collisions.
Banned User
B
23
S
6
G
58
Posts: 1,229
Reputation: 34,540

Post » Wed Mar 15, 2017 11:27 pm

Thanks for the info.
What does it mean to activate it without collisions ?.

What is the use?
B
29
S
12
G
20
Posts: 759
Reputation: 13,861

Post » Wed Mar 15, 2017 11:37 pm

The Mnk wrote: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.
Banned User
B
23
S
6
G
58
Posts: 1,229
Reputation: 34,540

Post » Wed Mar 15, 2017 11:44 pm

Thanks again, I want to do some tests on that to finish understanding it.
B
29
S
12
G
20
Posts: 759
Reputation: 13,861

Post » Wed Mar 15, 2017 11:51 pm

The Mnk wrote: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.
Banned User
B
23
S
6
G
58
Posts: 1,229
Reputation: 34,540


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 6 guests