Pages: 1
Topic closed
Hi Everybody, I'm conducting a scratch camp right now. I have a question about a sprite.
How do you make one side of a sprite always face another sprite that it is following around and trying to catch.
Offline
Can you reword it.
I think it would be normal to do it like this:
__
| O |
¯¯
Have 4 sprites as sensors. They have a ghost effect set to 100 so you cant see them.
Then make a list with 4 lines and link a line up to each sensor like:
When ¶ clicked
forever
| if <touching |OTHER SPRITE v|>
| replace item |1| of |Sensors| with |Yes|
| else
| replace item |1| of |Sensors| with |No|
_______________________________________
_______________________________________
Offline
johnnydean1 wrote:
Can you reword it.
I think it would be normal to do it like this:
__
| O |
¯¯
Have 4 sprites as sensors. They have a ghost effect set to 100 so you cant see them.
Then make a list with 4 lines and link a line up to each sensor like:
When ¶ clicked
forever
| if <touching |OTHER SPRITE v|>
| replace item |1| of |Sensors| with |Yes|
| else
| replace item |1| of |Sensors| with |No|
_______________________________________
_______________________________________
First of all, that's really ineffective.
Second, you could do this:
When green flag clicked:
|Forever|
point towards [target sprite]
|End forever|
Offline
Topic closed
Pages: 1