This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2009-11-13 04:42:53

JaredxD
Scratcher
Registered: 2009-09-10
Posts: 100+

Need help with sprite's following the mouse (ASAP please :P)

Well I have made a project where a pencil follows the cursor, its a drawing project, but when I move it around and draw, it draws from the middle, not the tip of the pencil. is there ways to change this? Please help.

Offline

 

#2 2009-11-13 04:51:27

Chrischb
Scratcher
Registered: 2008-07-24
Posts: 1000+

Re: Need help with sprite's following the mouse (ASAP please :P)

All I can suggest is setting a sprite's X and Y to a certain difference of the pencil's, and making it stamp or use the pen-up and pen-down blocks.

I'm not an expert in this field, sorry.  hmm


I fall: It's a tragedy. You fall: It's comedy.
Hmph enjoy your fall - I get a lovely spring... without pans of new leaves.

Offline

 

#3 2009-11-13 05:12:31

JaredxD
Scratcher
Registered: 2009-09-10
Posts: 100+

Re: Need help with sprite's following the mouse (ASAP please :P)

ok thanks =]

Offline

 

#4 2009-11-13 08:04:39

steppenwulf
Scratcher
Registered: 2009-07-23
Posts: 1000+

Re: Need help with sprite's following the mouse (ASAP please :P)

The easiest way to do it is to set the pencil's costume center to the tip of the pencil.


I'm graduating HS this April and going to college in the Fall.

Offline

 

#5 2009-11-13 09:00:01

06dknibbs
Scratcher
Registered: 2008-01-29
Posts: 1000+

Re: Need help with sprite's following the mouse (ASAP please :P)

The method I use is:

Duplicate the pencils costume and then turn it into a new Sprite.
Then, edit the new Sprite's costume and remove the bits you don't want.
Tell it to Forever, go to the pencil Sprite, and it should go to the Sprite perfectly.
smile


http://i404.photobucket.com/albums/pp129/06dknibbs/Untitled-3-6.jpg

Offline

 

#6 2009-11-13 15:50:22

JaredxD
Scratcher
Registered: 2009-09-10
Posts: 100+

Re: Need help with sprite's following the mouse (ASAP please :P)

Used steppenwulf's way, works fine on the project, but not when I share it online =\

Offline

 

#7 2009-11-14 01:14:53

Chrischb
Scratcher
Registered: 2008-07-24
Posts: 1000+

Re: Need help with sprite's following the mouse (ASAP please :P)

JaredxD wrote:

Used steppenwulf's way, works fine on the project, but not when I share it online =\

Online can be glitchy. Just tell people to download it in the Project Notes like others do.  smile


I fall: It's a tragedy. You fall: It's comedy.
Hmph enjoy your fall - I get a lovely spring... without pans of new leaves.

Offline

 

#8 2009-11-14 02:38:22

hmnwilson
Scratcher
Registered: 2007-07-04
Posts: 1000+

Re: Need help with sprite's following the mouse (ASAP please :P)

Use the costume center method. Just go to the paint editor, click on the button that looks like a +, and then set it to where you want.  smile


I'm taking a break from Scratch until 2.0 comes out. Any messages sent between then and now probably won't be read - sorry.
(Oct. 20, 2011)

Offline

 

#9 2009-11-14 06:28:42

JaredxD
Scratcher
Registered: 2009-09-10
Posts: 100+

Re: Need help with sprite's following the mouse (ASAP please :P)

All fixed, thanks for teh help

Offline

 

Board footer