How do I stop the character from standing in a crawl space?

Get help using Construct 2

Post » Tue Jan 10, 2017 7:58 pm

Message: Vodakman can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
The title says it all.

I've tried using the "Player is overlapping Solid" behavior, it works alright but the animation is just stuck and it won't change unless I hold S (the crouch button) again and the imagepoint for the gun either disappears or something else happens, because the arm changes position.

.capx link: http://www.mediafire.com/file/jnk6ny7883joj8m/A+game+that+I%27ll+probably+abandon+%231369.capx
B
7
Posts: 34
Reputation: 345

Post » Tue Jan 10, 2017 9:08 pm

are your crawl spaces all the same size?
B
38
S
18
G
19
Posts: 664
Reputation: 14,112

Post » Tue Jan 10, 2017 9:53 pm

@jeffige I'm currently just messing around with stuff, no real level has been created. It's just a canvas with the player, a floor and wall with space under it for crawling through it.
B
7
Posts: 34
Reputation: 345

Post » Tue Jan 10, 2017 9:58 pm

ok. What i would try to do - if down arrow is pressed - create object - CRAWLBOX (insert a box that is close to the size of the crawl space)

create that box so that it is in the same position as the player (make it 0% opacity) pin it to the player. Just like in the platformer tutorial.

Then if that crawlbox is touching the floor and ceiling objects - play animation - crawl.

Just off the top of my head. That's what i would probably try to start with.
B
38
S
18
G
19
Posts: 664
Reputation: 14,112

Post » Wed Jan 11, 2017 8:52 am

Vodakman wrote:The title says it all.

I've tried using the "Player is overlapping Solid" behavior, it works alright but the animation is just stuck and it won't change unless I hold S (the crouch button) again and the imagepoint for the gun either disappears or something else happens, because the arm changes position.

.capx link: http://www.mediafire.com/file/jnk6ny788 ... 31369.capx


This *might* be of use? https://www.scirra.com/tutorials/1389/m ... av-mbcdash
B
41
S
12
G
14
Posts: 1,122
Reputation: 11,268

Post » Wed Jan 11, 2017 9:18 am

@Zebbi Thanks, I'll see if this works or not.
B
7
Posts: 34
Reputation: 345

Post » Wed Jan 11, 2017 10:50 am

Vodakman wrote:@Zebbi Thanks, I'll see if this works or not.

It has some other things like dash in there which aren't necessary in this case, but the basic mechanism of crawling is the same, at least in c2 you can use offsets for better detection.
B
41
S
12
G
14
Posts: 1,122
Reputation: 11,268


Return to How do I....?

Who is online

Users browsing this forum: dop2000, michaelverdi, tarek2, Yahoo [Bot] and 18 guests