hi~I come from Taiwan.(My english is poor.Hope you can understand what I said.><|||)
I'm a new user about Scratch.
I made a maze,you can find it by the under link.
http://scratch.mit.edu/users/orion05010
My question is "why the cat is in the black wall???" The cat should step on white road.
Black color is maze wall.The ghost(dragon) I had let it not to move.
I had changed the distance that the cat touchs black walls then bound,but the cat still walk walk walk(><|||) then stuck in the black wall.
WHY WHY WHY
please help me. Thank you.
Offline
Ah, well your problem is that if it happens to be touching the wall when you change direction, it starts moving -2 steps in the wrong direction. For example, if it's moving up, stops at the wall, and is still touching the wall when you change to going, for example, right, instead of moving down away from the wall, the sprite moves -2 steps relative to its new direction, so it goes left. Does that make sense?
Offline
The new direction is different.
Peace out, and RAINBOOM AWAY!!!!!!!!!!!!!!!!!!!!
I really want a signiture.
Offline
Thanks for replys@@
now I konw the cat direction is wrong.but I still don't know how to modify it.@@
I changes that it starts moving 0 steps,it still struck in the black wall.
but I can't find "stop" command.@@
can you modify it and post commnands on this.thanks.
Offline
Hm, well for the most part, you can solve it by putting an if <not touching color black> script around each of the "point in direction" blocks, like so:
When key up arrow presssed if <not <touching color black> > point in direction 0
Unfortunately, there are a few cases where this doesn't fix it completely. You can most definitely fix that with a sensor sprite, but that's a little complicated. Do you want to know how to do that?
Offline
Thank you,Harakou.
Yes,I want to know how to do that,but now I still don't solve the first Q.= ||
According to your code,I modified it.@@Doesn't work.
Because there are many commands in that file,I'm not sure that I only make your code or should deconstruct the original commands.
(I tried many different situations: made your code ,
deconstruct or compose the original commands,
even draw new background and new sprite, but..failed...><|||)
Could you modify the file and post on your stuff,I'll be very thankful.
I can download it and study it. or mail to me.
~~Thank you!!!~~
Offline
My first script was just an example of what you should do to all four scripts. Sorry for the confusion. Give me a minute and I'll upload the improved project and post the link here.
As I said before, a sensor sprite will completely resolve these problems, but that's a little more involved.
Offline
Harakou here on my test account. I've uploaded your project with the changes I made. You can find it at http://scratch.mit.edu/projects/harakou_testing/1926174. (Sorry for the plain text; this account isn't allowed to post links yet.)
Anyway, you can see I actually made a few more changes to the scripts than I originally indicated, although I have still only changed the four scripts that affect what happens when an arrow key is pressed. This seems to fix the problem 100% of the time now. I hope that helps you!
Offline
I saw it.Thanks for your help to fix it.
Offline
harakou_testing wrote:
Harakou here on my test account. I've uploaded your project with the changes I made. You can find it at http://scratch.mit.edu/projects/harakou_testing/1926174. (Sorry for the plain text; this account isn't allowed to post links yet.)
Anyway, you can see I actually made a few more changes to the scripts than I originally indicated, although I have still only changed the four scripts that affect what happens when an arrow key is pressed. This seems to fix the problem 100% of the time now. I hope that helps you!
Us newbies can post links to Scratch.
I played your game, orion05010, it seems to work.
Offline
Craigster001 wrote:
I really want a signiture.
Just post 15 different replies to topics or topics themselves.
Offline