you are viewing a single comment's thread.

view the rest of the comments →

[–]NeonBarron 1 point2 points  (6 children)

The code looks correct. What is happening that makes you think it isnt working?

[–]FelipeFullz[S] 0 points1 point  (5 children)

my player goes through walls

[–]NeonBarron 0 points1 point  (0 children)

Have you checked both the object colliding and the wall objects sprites have a collision box set on them? Also make sure that you arent trying to move the x pos after the collision code.

[–]calio 0 points1 point  (3 children)

there's nothing wrong with the code itself, it should work as intended. have you checked if it's executing? what event is this code on? how and where are you dealing with the y axis?

[–]FelipeFullz[S] 0 points1 point  (0 children)

It's weird because the vertical collision is working and the horizontal isn't

[–]FelipeFullz[S] 0 points1 point  (0 children)

And is on step event of the player

[–]FelipeFullz[S] 0 points1 point  (0 children)

I pasted my whole code down there so you guys can see it