0 Favourites

How do I use "Is by wall" properly?

  • Sooo sorry this post was supposed to be on Construct 2 help, didn't notice the forum had changed, went pretty automatically.

    Hey! I'm making a Megaman X clone and I'm having trouble with the Is by wall condition. X wall slides when he IS BY WALL, falling and holding the right arrow key towards the wall (wall to the left, holding left, wall to the right, holding right)

    (that's not all the code though, but the main part)

    It works! (this image and the image below are way too big, press right mouse buttom and View on another tab so you can see'em)

    But... for some reason, this also works when there are walls above him

    He can wall jump on walls above him as well, and it looks awful. I really don't know what's wrong with the code, shouldn't Is by wall to the left and right not consider walls above the player? I have already checked and X is definitely not overlapping the wall above him, so all of this really doesn't make sense to me.

    Capx file if you want to check it out by yourself:

    https://drive.google.com/open?id=0B2yZXSPQBErnRHk3YVFIQmJPTzg

    Please help me if you know what I could be doing wrong!

  • Hi, I believe your problem isn't in your coding but in the C2 version you're using.

    You see, I'm also making a MMX Game with C2 and my wall jump events are almost the same as yours and it works nicely (You can see it in action here: /watch?v=N1-W7iA3YRc&t=34s no direct link since this is my first post :c).

    However when I tried opening your .capx it warned me that it used a more recent version of C2, and well... I found out this tiny little detail in the latest update (r246)

    This is what's causing X to wall jump so erratically.

    Personally I chose to remain on r245 thinking that little change might break wall jumping and now you proved my fears true. So I guess your options are to either downgrade to r245 or place a condition to compensate for the additional ceiling check.

  • Hi, I believe your problem isn't in your coding but in the C2 version you're using.

    You see, I'm also making a MMX Game with C2 and my wall jump events are almost the same as yours and it works nicely (You can see it in action here: /watch?v=N1-W7iA3YRc&t=34s no direct link since this is my first post :c).

    However when I tried opening your .capx it warned me that it used a more recent version of C2, and well... I found out this tiny little detail in the latest update (r246)

    This is what's causing X to wall jump so erratically.

    Personally I chose to remain on r245 thinking that little change might break wall jumping and now you proved my fears true. So I guess your options are to either downgrade to r245 or place a condition to compensate for the additional ceiling check.

    Yes, you're right. This has to be the version, because I remember this bug wasn't happening. I might be wrong but, downgrading my Construct 2 won't make it impossible to open my project, since last time I saved it was on this new version? I hope I can because, this change on the new version will really screw my walljump and slide. Also, do you know why this change was even made? Really all it seems to do is cause mess.

    By the way, congratulations on your engine. It looks tight! Could you please tell me how you animated X's walk? I made lots of changes on it lots of times but I never seen to get it right like it's in the game.

    Thanks for your response!

  • I'll have to reverse the project back to an older version following this tutorial

    https://www.scirra.com/tutorials/442/ho ... onstruct-2

    That'll fix my problem. Thank you for your reply, Solren

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • marcosfl

    Solren

    I believe this might be due to a bug fix I requested ... sorry <img src="{SMILIES_PATH}/icon_redface.gif" alt=":oops:" title="Embarrassed">

    https://github.com/Scirra/Construct-3-bugs/issues/621

    Originally the "Is by wall" condition would not work if the object was by a wall and had a ceiling directly above.

    Ashley fixed this, but now it is also triggering when you only have a ceiling above you, which is obviously incorrect; it would be worth flagging it up as a bug.

  • marcosfl

    Solren

    I believe this might be due to a bug fix I requested ... sorry <img src="{SMILIES_PATH}/icon_redface.gif" alt=":oops:" title="Embarrassed">

    https://github.com/Scirra/Construct-3-bugs/issues/621

    Originally the "Is by wall" condition would not work if the object was by a wall and had a ceiling directly above.

    Ashley fixed this, but now it is also triggering when you only have a ceiling above you, which is obviously incorrect; it would be worth flagging it up as a bug.

    So it was you??! Okay, I forgive you. Didn't know about this wall + ceiling bug, but the new one is definitely much worse, haha. Glad they know about this new one too, I'm gonna use version r244 while this isn't fixed

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