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)
        ![[RSS Feed] [RSS Feed]](//cdn.scratch.mit.edu/scratchr2/static/__5b3e40ec58a840b41702360e9891321b__//djangobb_forum/img/feed-icon-small.png)  
- HootDug
- 
                             Scratcher 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 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):
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
- 
                             Scratcher 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 Scratcher
1000+ 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 LolWhy not? You need to make them variables though. These are not equivalentset [ x position] to [ animal x]
set [ x position] to [ animal x]
set [ x position v] to (animal-x)
- HootDug
- 
                             Scratcher 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 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 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 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 Scratcher
66 posts
Hello Anyone help me make a script so my animal has a seperate tail (ill explain in the topic)
- HootDug
- 
                             Scratcher 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 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 Scratcher
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) ![[RSS Feed] [RSS Feed]](//cdn.scratch.mit.edu/scratchr2/static/__5b3e40ec58a840b41702360e9891321b__//djangobb_forum/img/feed-icon-small.png)  
![[RSS Feed] [RSS Feed]](http://cdn.scratch.mit.edu/scratchr2/static/__5b3e40ec58a840b41702360e9891321b__//djangobb_forum/img/feed-icon-small.png)



