Pages: 1
Topic closed
I'm making a Pokemon game and I want to make it so my character stops walking when it comes in contact with objects like the TV, or a table, or a tree, or the wall. I can't figure it out. I tried, but the second my character touched the color black she couldn't move at all in any direction.
Offline
What script are you using at the moment?
Would this be helpful
Last edited by melikecheese (2010-07-20 11:25:42)
Offline
gamer_6 wrote:
i'm trying to use an "if" block, as in if my person is touching the color black, etc. But it won't work...
try this:
[if < <not<touching color [black]> > and <key right arrow pressed> >]
[change x by (10)]
[end if]
Offline
i also tried the thing that you suggested, and it didn't work... I'm trying to make my character move in all directions (up, down, left, right) and if i touch black i want to stop moving. for example, if my sprite was walking down, and she touched black, she wouldn't be able to move down anymore but still left, right, and up
Offline
maybe if touching balck move negative amount of spaces?
Offline
scratchreallyrocks, yours works except that if i have it on all of my sprite's directions (up, down, left, and right) i can't move at all if i touch black. I want to be able to move away from the black if i touch it.
Offline
gamer_6 wrote:
scratchreallyrocks, yours works except that if i have it on all of my sprite's directions (up, down, left, and right) i can't move at all if i touch black. I want to be able to move away from the black if i touch it.
Okay, then use this: http://scratch.mit.edu/projects/Scratch … KS/1202655
Offline
Topic closed
Pages: 1