Discuss Scratch

HootDug
Scratcher
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
Scratcher
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):

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
Scratcher
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
Scratcher
1000+ posts

Hello Anyone help me make a script so my animal has a seperate tail (ill explain in the topic)

HootDug wrote:

I believe I cant write this Lol
set [ x position] to [ animal x]
Why not? You need to make them variables though. These are not equivalent
set [ x position] to [ animal x]
set [ x position v] to (animal-x)

HootDug
Scratcher
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
Scratcher
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
Scratcher
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
Scratcher
66 posts

Hello Anyone help me make a script so my animal has a seperate tail (ill explain in the topic)

OH!
HootDug
Scratcher
66 posts

Hello Anyone help me make a script so my animal has a seperate tail (ill explain in the topic)

HootDug
Scratcher
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
Scratcher
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
Scratcher
66 posts

Hello Anyone help me make a script so my animal has a seperate tail (ill explain in the topic)

wait

Powered by DjangoBB