KnavishPlum's Forum Posts

  • 5 posts
  • The example worked great!! Thank You! It is much simpler than going with 8 dir movement and also has no issue with getting to the edge of the wall or breaking off mid climb.

  • Hello! I have been working on a project recently that involves wall climbing, I have figured that part out to an extent but I have been having issues for when the player reaches the top of said wall is needs to "climb over the edge" per say back to their normal state.

    Right now, wall climbing works by turning platform movement off and changing to 8 directional movement. I made an object that is supposed to move the player up and then left or right depending on the which object it is (I have an up/left and up/right).

    Here is the code:

    For context, the edge objects image point is 0,0 (bottom left corner) while the players is bottom center. The idea is to move the player flush to the edge objects surface (player height plus the edge objects height (its 40, but I changed it after taking photo) and then move the player its full length and half the block next to it (both are 24 long so 24 + 12 = 36).

    Instead the player bonks into it like it's solid even though it contains no behaviors and the player should go threw it instead if not working right? On that note, what it going wrong? What could I try to fix it?

    Thank You!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hello, I need some help with few features of my wall climbing ability. Most of the general code is in place and the player can move up and down the wall with no issue. I just need help with two things. Getting to the end of the wall and detaching from it mid climb.

    The code above is what I have so far, it disables platform and enables 8 direction movement while in contact with the thing that let's them climb (For context, they use sticky paint they shoot at the wall to climb).

    I need help figuring out how to make it so they can "detach" and go back to platform when they run out of wall, such as getting to the higher area or just run out without getting stuck on the wall like they do now and to add a jump thing so they can jump off mid climb which would also re-enable platform.

  • Using the state machine kinda works, but causes issues with the animations themselves. I initially didn't use it because I have run into this issue. When jumping up, the jump animation only plays while they are moving up, and also will play the running animation if I move while in the air.

    Attempts to merge the systems just causes the animations to stop working completely. Also, how would I make an idle state? using a past method of having all keys released causes the issue of other animations acting funky.

    EDIT: Ok, I got it working to an extent by creating a "is_attack" boolean. All the default animations (idle, walk, jump) are now sub-events to an event that says "if is_attack is false" then use these, else play the attack animation. is_attack is made true on its button press.

  • I am working on a simple platformer. All the basic stuff like running and jumping is in and the animations for that work fine. I am now trying to add an attack that animates with the press of a key. Instead of the animation playing, the player just jitters for a second and goes back to idle.

    Here is the player Animation Code:

    // player idle

    E: player is not moving - A: set animation to "player_idle"

    // player walk

    E: player is moving - A: set animation to "player_walk"

    // player jump

    E: player is jumping or falling - A: set animation to "player_jump"

    The player controls are just arrow keys or WASD + Space. The moving being the key is down and jump being the key is pressed. The attack is a pressed key, but I am kinda lost has to why the animation will not play. everything in the animation is set up and I have tried some other ways that also do not work.

    I am kinda new so maybe I am just missing something.

  • 5 posts