Help with walls in puzzle game

Project link: Please help! #debugame #games #simulation by StarlightStudios

1-sentence description of the issue:
The walls aren’t working in a puzzle game I’m making

What do you want your code to do?
When you swipe right, down, or up you should hit the wall and stop moving. But sometimes you get stuck in the walls.

What is the code currently doing?
You randomly get stuck in walls and you are randomly spaced from the wall instead of being right next to it.

Screenshots:

6 Likes

I can help, but first, turn it advanced mode and remove scene 1, I can’t remix.

4 Likes

Is it just me or did I just realize they got rid or #debugme

5 Likes

Sorry it should work now!

3 Likes

Oh wait no sorry ignore the last thing I wrote that is wrong… you just forgot to add a “when is swiped left” rule! :sweat_smile:

2 Likes

Yeah, I was wondering why that wasn’t there but you could swipe left.

3 Likes

Yeah sorry I’m going to add one more wall for the swipe left rule.

3 Likes

That will be good, because when you swipe left you go out of the screen

3 Likes

Ok you can swipe left and hit another wall now

2 Likes

You haven’t fixed it yet, but sadly I can’t, it was made with advanced mode so you can’t back out.

3 Likes

Oh and btw when you made the code for colliding with a wall, you made the x/y variable increase by 9. I changed it to 10 and the block never froze after that :thinking:

4 Likes

Oh, i thought if I deleted the scene and turned off advanced mode it would fix that sorry I don’t know what else to do.

2 Likes

Ok ill check it out right now!

2 Likes

It’s ok, the only way to remove that is using AE’s project editor.

3 Likes

Woah your right! thanks a lot for the help!

2 Likes

It seems to be fixed now. Thanks for trying to help!

4 Likes

This topic was automatically closed after 36 hours. New replies are no longer allowed.