Suggestion: plattform Walk through

Discussion and feedback on Construct 2

Post » Sat Jul 07, 2012 1:15 pm

We got a nice "Fall through" action for the Plattform behavoir lately.

Can we get a "Walk through" action (Walk through solids) for Plattform and 8 Direction.

or alternative a "disable colission with solids" action.
Similar to the one the Physics behavior has.

This would be different to disable the solid behavoir, because
in a two player game only the player with, for example, "ghost mode"
could walk through the wall.

Would be great!
B
18
S
3
G
3
Posts: 29
Reputation: 2,724

Post » Sat Jul 07, 2012 2:07 pm

You can already disable the solid behavior with its 'Set enabled' action. The Platform behavior should also be able to walk through Jump-thru objects.
Scirra Founder
B
357
S
214
G
72
Posts: 22,945
Reputation: 178,206

Post » Sat Jul 07, 2012 2:27 pm

Thanks for reply Ashley
(and by the way Thanks for your great work on Construct2),

I know that the solid behavoirs can be disabled.
but then it is disabled for all Plattform behavoirs.
What I was looking for, was a way of disable the Solid behavoir only for a specific Object type (or vice versa).

e.g. for a game with a "you can go through walls" skill or something. The Player can go trough walls, but the Enemys can't. I'm sure there are many more uses.Fabian Schempp2012-07-07 14:35:45
B
18
S
3
G
3
Posts: 29
Reputation: 2,724

Post » Sat Jul 07, 2012 2:48 pm

I too would be very interested in something like this



B
5
S
1
G
1
Posts: 52
Reputation: 1,222

Post » Sat Jul 07, 2012 8:14 pm

Here's an example of how to do what you want by using families and local variables on the family to determine if you can go through or not. Should be super simple and dynamic. If I've understood your problem correctly.

Remember local variables are set on individual objects, not uniformally on all objects.

Furthermore, I'd keep using this design to do "jumpthrough" platforms by having a second boolean indicating if it's jumpthrough or not. That way you have a unified and simple interface to design levels and don't have to 'bother' with a behaviour (unless you're pressed on resources).

https://dl.dropbox.com/u/4898391/walkthroughs.capxJulmust2012-07-07 20:24:46
B
16
S
6
G
6
Posts: 100
Reputation: 4,840

Post » Sun Jul 08, 2012 2:57 am

I don't think it really fixes the problem
Because you are still just turning the solid behaviour for a wall on and off like opening and closing a door, any other object with the platform behaviour is capable of slipping through behind the player who is in ghost mode.
B
5
S
1
G
1
Posts: 52
Reputation: 1,222

Post » Sun Jul 08, 2012 10:20 am

@Julmust Thank you for the example, but as @Vercingetorix wrote it doesn't solve the Problem if there are more than one Plattformer entity in the game.
B
18
S
3
G
3
Posts: 29
Reputation: 2,724

Post » Sun Jul 08, 2012 10:30 pm

Indeed, this is a problem that's been annoying me for ages now.
R0J0hound came up with a pretty decent solution here, but this is still quite annoying if you have a huge level and don't want to replicate it, or if your level can be changed by the user in some way.
B
22
S
6
G
10
Posts: 118
Reputation: 8,005


Return to Construct 2 General

Who is online

Users browsing this forum: gamecorpstudio, Zonacas and 12 guests