Platform behavior, is being crushed condition

New releases and general discussions.

Post » Wed May 27, 2009 11:52 am

something you see in most platformers is being "crushed" by moving solid objects, when pinned up against another solid object. be it a block falling on you or being between 2 blocks when they close up a gap.

i think it would be a great feature for the default platform behavior if you could check for this.
B
52
S
7
G
6
Posts: 1,945
Reputation: 7,610

Post » Fri May 29, 2009 12:26 pm

I like that idea.

if player is being crushed...kill him, or hurt him, or maybe stat a minigame where he has to push back against the walls. I could picture Cratos doing that. ;)
B
2
S
2
G
4
Posts: 124
Reputation: 1,698

Post » Fri May 29, 2009 2:19 pm

You can do this already, but it takes a buttload of detectors and other messy stuff. It would be a nice feature to have if it was possible to implement easily enough. :D

~Sol
Tired of crappy file hosts that are crappy? Get DROPBOX - https://db.tt/uwjysXJF
Moderator
B
45
S
17
G
37
Posts: 2,853
Reputation: 25,966

Post » Fri May 29, 2009 2:29 pm

[quote="SoldjahBoy":3sjj92kb]You can do this already, but it takes a buttload of detectors and other messy stuff. It would be a nice feature to have if it was possible to implement easily enough. :D

~Sol[/quote:3sjj92kb]

What detectors? Step into the world of Overlapping at Offset, my friend.

Also, the platform object has conditions for Has Wall on Left/Right, Ceiling is Above, and On Ground... so yeah, you can make your own crushing events pretty easily. Either just stop the solids from moving when they hit, or destroy your platform object when it's crushed, so it doesn't teleport out of the solid due to intersecting.
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Sat May 30, 2009 10:27 am

[quote="deadeye":292rwzod]What detectors? Step into the world of Overlapping at Offset, my friend.[/quote:292rwzod]
But.... but... I like my detectorers :(

I will miss you little guys *waves*

BAAAWWWWWW!

~Sol
Tired of crappy file hosts that are crappy? Get DROPBOX - https://db.tt/uwjysXJF
Moderator
B
45
S
17
G
37
Posts: 2,853
Reputation: 25,966

Post » Thu Aug 26, 2010 1:36 am

Hey deadeye, could you elaborate a bit more for me on the crushing event? I am in the classic scenario when the ceiling is coming down and the floor is coming up and you are stuck in between.

Currently i just deal with the teleporting problem you mentioned as a temporary glitch. I think i can keep it from happening, i am just not sure how. I also have the same problem when my player is crouched and enters a lower area. If you release crouch then you teleport to the nearest solid play area. Its actually kind of neat, but it can be unpredictable.

I would like to give the player a bit of give as the ceiling closes in, say 10px smaller than their bounding box. Then, after that point the player is crushed and killed. I like to find a way to go off of the player box so that i can allow the player to crouch in really tight situations, but still be crushed while crouched.

Anyway, any other input would be very useful! :)
Nate
B
2
G
2
Posts: 15
Reputation: 680


Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 2 guests