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

#1 2012-04-25 14:49:32

JustMe003
New Scratcher
Registered: 2012-04-25
Posts: 4

Help

I have a project where i have a count variable, when it has gone up by 1 i need to move the pointer 10 steps to the right of where it last was, with every count.  It needs to remain in the same position on the y axis but change on the x, from where the pointer last was by 10 steps, im very new to this so am stumped any pushes in the right direction i would like to try and figure it out for myself if possible

Offline

 

#2 2012-04-25 15:09:17

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: Help

change x by (10)
Is this what you're looking for?

Offline

 

#3 2012-04-25 15:15:10

JustMe003
New Scratcher
Registered: 2012-04-25
Posts: 4

Re: Help

ive tried that but it only moves it 10 along on the x, i need it to move 10 pen spaces from where the pointer ended on the last count

Offline

 

#4 2012-04-25 15:23:38

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: Help

From where the mouse pointer was?

set x to ((mouse x) + (10))
Like that?

Offline

 

#5 2012-04-25 15:30:39

JustMe003
New Scratcher
Registered: 2012-04-25
Posts: 4

Re: Help

oh i meant to write sprite lol sorry distracted.  So basically i have a sprite that draws a letter or number and a counter that counts the amount of times its been drawn, its just the spacing between i need 10 pen spaces between each while the counter keeps track of the amount of times, if that makes sense, ive literally barely used this before so any help would be great.

thanks

Offline

 

#6 2012-04-25 15:34:30

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: Help

Oh, now i see what you mean. I assume it's stamping costumes with letters. You'll need to do:

move ((costume width) + (10)) steps

Offline

 

#7 2012-04-25 15:43:01

JustMe003
New Scratcher
Registered: 2012-04-25
Posts: 4

Re: Help

Its a key press variable that draws the letter or number (these have their own blocks to draw the letter or number), while the count variable counts, it all needs to be in a line with 10 pen spaces between.  I have it set so y stays the same throughout so its in a line, but the way im doing it everything ends up either other lapping, or to far apart.  Im having this i know what i need it to do but not really being a pro ive no idea how to translate it

Offline

 

#8 2012-04-25 15:49:06

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: Help

Maybe you'd like to upload your progress? I can probably fix it faster that way.

Offline

 

Board footer