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

0 favourites
  • 7 posts
From the Asset Store
Spaces Ambience contains 102 Sounds: 53 track and 49 sounds
  • 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

  • are your crawl spaces all the same size?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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.

  • 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.

  • 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

  • Zebbi Thanks, I'll see if this works or not.

  • 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.

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