I want the player to crawl on the floor.

1 favourites
  • 9 posts
From the Asset Store
Basic Rounded Vector Geometry Player Design with Glow for 3 player games
  • My player will crouch when pressing the down arrow key. In this state, if I hold down the forward arrow key, I want the player to crawl, but only the first frame out of 10 frames of my player's crawling animation is shown and the player is only moving. Please help if I'm missing something or if there's an advanced feature I could add!

  • Do your normal walk events have a condition such as cancrawl=0 ?

  • no. I'll replace the answer with a picture.

  • Yeah what I assumed, the crawl and walk are true at the same time. You have to use the crawl variable to block out the normal walk, so a condition iscrawl=0.

  • I've been busy, so I checked now. Thanks for your reply! I did what you said, but the symptoms are still there. Still, my player crouches and presses the forward arrow to move, but only the first frame of the crawling animation is shown. I thought the method you talked about would be quite clever. Is there any other way?

  • You also need to split the events for crouch and crawl, at the moment they are true at the same time so it's trying to play crouch and crawl together. You need to block out the crouch animation from playing, probably by saying player is not moving. You should move it to separate events.

  • It looks like you're setting the animation to "Crawl" from the beginning every frame. You should either a) make sure it's not already playing the animation you want first, or b) set it to play from the current frame.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The reply was late. It was solved with your(MoscowModder & Lionz) help. I'll open my code for others who have the same problem as me. I hope it is helpful.

  • Additionally, this should be included so that the player will walk naturally when the down arrow is released while crawling.

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