How do I use "Is by wall" properly?

Get help using Construct 3!

Post » Thu Aug 31, 2017 8:46 pm

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)

Image
(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)

Image

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

Image

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!
B
20
S
7
Posts: 24
Reputation: 1,422

Post » Fri Sep 01, 2017 3:47 pm

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)
Image
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.
B
15
S
2
Posts: 2
Reputation: 709

Post » Fri Sep 01, 2017 5:11 pm

Solren wrote: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)
Image
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!
B
20
S
7
Posts: 24
Reputation: 1,422

Post » Fri Sep 01, 2017 5:47 pm

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
B
20
S
7
Posts: 24
Reputation: 1,422

Post » Fri Sep 01, 2017 8:15 pm

@marcosfl
@Solren

I believe this might be due to a bug fix I requested ... sorry :oops:

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.
B
22
S
9
G
4
Posts: 476
Reputation: 4,327

Post » Fri Sep 01, 2017 8:53 pm

mekonbekon wrote:@marcosfl
@Solren

I believe this might be due to a bug fix I requested ... sorry :oops:

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
B
20
S
7
Posts: 24
Reputation: 1,422


Return to How do I...?

Who is online

Users browsing this forum: No registered users and 0 guests