Discuss Scratch

Fireball54321
Scratcher
2 posts

My character is going through walls! Can someone help?

Hi, I'm a scratcher who is stuck. I could use some help. I am making a platformer, but my character goes through walls! I've searched the Web for help, but all of them are about mazes and, like I said, this is a platformer. I tried over three videos, but still all of them were a fail and the closest one to what I needed just made my sprite bounce off the wall. So, if anyone knows how to fix this, please tell me and I'll be very glad.

Fireball54321
mryork
Scratcher
16 posts

My character is going through walls! Can someone help?

You should make your if then statements under a different When Green Flag Clicked Block. Right now it has to say all of those different lines before it starts to check and see if you are touching the wall.

Also, It says owe for half a second before resetting, I am pretty sure if the user got through the wall before it finished saying owe it would not reset.

The first thing that should happen once the user touches the red wall is it should go back to the beginning.
coderdojobray
Scratcher
100+ posts

My character is going through walls! Can someone help?

You could make a if sprite 1 is touching the wall go to x… y…
chloedog123
Scratcher
6 posts

My character is going through walls! Can someone help?

Are you using the
forever
block? If you don't, the script will only work for the first millisecond of the project.
yeroc8
Scratcher
14 posts

My character is going through walls! Can someone help?

try using
whenclickediftouchingcolor?thenmove-0.01steps
yeroc8
Scratcher
14 posts

My character is going through walls! Can someone help?

you could also use:
whenclickediftouchingwallsprite?thenmove-0.01steps

Last edited by yeroc8 (Sept. 22, 2014 20:36:03)

Fireball54321
Scratcher
2 posts

My character is going through walls! Can someone help?

Thanks for all the replies. They'll help me finish my game. It's called “The Cheese Quest” where a guy called Bob lost some cheese and goes on a quest to get it back.

I'll try to use all of your suggestions, and say which one worked.

PownageMonkey101
New Scratcher
1 post

My character is going through walls! Can someone help?

whenclickedforeverchangexby-5Changexbyyourcharacterspeed.inmycasemycharacter'sspeedis5sowhatididwaschangexby-5.thismakesitsomycharactercan'tgothroughthatcolour.
SaoirseE
Scratcher
10 posts

My character is going through walls! Can someone help?

Nothing happened, just made it worse. Can somebody help? PLEEEEEEEAAAAAAASE!


deck26
Scratcher
1000+ posts

My character is going through walls! Can someone help?

SaoirseE wrote:

Nothing happened, just made it worse. Can somebody help? PLEEEEEEEAAAAAAASE!


Please start your own topic if you need help and don't necropost on someone else's topic. It's impossible to help given the limited info you've given at the moment. Sharing a project is the easiest way to get help quickly.

Powered by DjangoBB