Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Hello Anyone help me make a script so my animal has a seperate tail (ill explain in the topic)
- HootDug
-
66 posts
Hello Anyone help me make a script so my animal has a seperate tail (ill explain in the topic)
Hello Anyone help me make a script so my animal has a seperate tail that faces to youre mouse pointer but doesnt make the tails end part touch the animal https://prnt.sc/vqd0vm see what i mean? it also follows the animal.
- GunChleoc
-
500+ posts
Hello Anyone help me make a script so my animal has a seperate tail (ill explain in the topic)
This is one possible solution (not tested, so it might not work):
And in a separate tail sprite:
The wait blocks are there for performance, so it won't check too often.
Make the tail costume off-center so it will get some distance from the animal.
forever
set (animal-x) to (x position)
set (animal-y) to (y position)
wait (0.1) secs
end
And in a separate tail sprite:
forever
set (x position) to (animal-x)
set (y position) to (animal-y)
wait (0.1) secs
end
forever
point towards (mouse pointer)
end
The wait blocks are there for performance, so it won't check too often.
Make the tail costume off-center so it will get some distance from the animal.
- HootDug
-
66 posts
Hello Anyone help me make a script so my animal has a seperate tail (ill explain in the topic)
I believe I cant write this Lol
set [ x position] to [ animal x]
- deck26
-
1000+ posts
Hello Anyone help me make a script so my animal has a seperate tail (ill explain in the topic)
Why not? You need to make them variables though. These are not equivalent I believe I cant write this Lolset [ x position] to [ animal x]
set [ x position] to [ animal x]
set [ x position v] to (animal-x)
- HootDug
-
66 posts
Hello Anyone help me make a script so my animal has a seperate tail (ill explain in the topic)
I dont getsssss
- deck26
-
1000+ posts
Hello Anyone help me make a script so my animal has a seperate tail (ill explain in the topic)
Share the project instead of an image and we can remix to sort you out (as well as seeing what you're misunderstanding).
- Ankit_Anmol
-
500+ posts
Hello Anyone help me make a script so my animal has a seperate tail (ill explain in the topic)
go to [animal v]
change x by ([-20] or whatever it takes to go to animals back )
point towards [mousepointer v]
Umm. This is only to go to animal. Not pointing
- HootDug
-
66 posts
Hello Anyone help me make a script so my animal has a seperate tail (ill explain in the topic)
OH!
- HootDug
-
66 posts
Hello Anyone help me make a script so my animal has a seperate tail (ill explain in the topic)
- HootDug
-
66 posts
Hello Anyone help me make a script so my animal has a seperate tail (ill explain in the topic)
there it is
- deck26
-
1000+ posts
Hello Anyone help me make a script so my animal has a seperate tail (ill explain in the topic)
So now you need to actually share it!
- HootDug
-
66 posts
Hello Anyone help me make a script so my animal has a seperate tail (ill explain in the topic)
wait
- Discussion Forums
- » Help with Scripts
-
» Hello Anyone help me make a script so my animal has a seperate tail (ill explain in the topic)