I've never used the pen before, so now I'm baffled when I need it now.
How do I make the pen follow directly behind my sprite? Right now it seems to just start somewhere at random. I feel like I'm missing something obvious.
Thanks
Offline
do you mean behind as in like, in the same spot but it dosnt show? do this.
(this is the pen)
<when green flag clicked>
<forever>
<go to[ sprite1
<go back(1)layers>
<end>
And be sure to say "<when green flag clicked>
<pen down>
Tell me if you have another question.
Last edited by heybrian1 (2008-03-13 20:53:01)
Offline
Hm, still not working right. I want the line to be visible right behind my sprite. I'm trying to make my own version of the classic Tron game. To make it easier to understand what is happening I'll label the sprites "leader" and "follwer" (the follower being the one making the line)
My set up is . .
[Blocks]
<when I receive[ start]
<pen down>
<forever>
<go to[ Tron]
[/blocks]
When I try this command for the "follower" it ends up a few spaces away from the "leader" aka Tron. The odd thing is that when I checked it out, it was actually my "leader" sprite which wasn't in the place the program said it was.
What's going on here?
Offline
check what the rotation point of tron and pen are.
make sure theyre in the center
Offline
i have a sprite that i need to walk to the end but i don't want him to do that forever how do i do that?
Offline
forever if not touching edge
Offline
just call me felix
and no cat jokes!!!
Offline
felix the cat.
an old cartoon charecter.
just youtube it.
Offline
hey, check out the newest ver. of cybercopter.
it has the HL2 music from dark energy.
from some of your old galleries i can tell youre a hl2 fan.
Offline
how do you make the screen move
i/e how do make the screen be like a mario game when the screen moves
Offline
ok i'll tell you. make a sprite as long as possible. Do this. make a variable called scroll X. Now do this:
<when green flag clicked>
<forever if><key[right]pressed?>
<change{scrollX}by( -5
<forever if><key[left]pressed?>
<change{scrollX}by(5
<end>
And now do this for each indivisual sprite:
<when green flag clicked>
<forever>
<set x to(<{scroll X}>
And sometimes you'll need to do (( <{scroll X }> <+> 480 ))
And
<when green flag clicked>
<forever if><<<( scroll X <>>280 )> <or><(-280 <>> scroll X )> >>
<hide>
Offline
For instructions on scrolling go to http://scratch.mit.edu/forums/viewtopic.php?id=2440
In case you don't understand the above post.
Offline
heybrian1 wrote:
And now do this for each indivisual sprite:
<when green flag clicked>
<forever>
<set x to( <{ scroll X }>
i dont think you need to use this script, only the one for the backround or something. also, there are a lot of scrolling tutorials, just go to the gallery "Help Projects" and you will find a lot.
Last edited by funkymonkey (2008-03-18 20:18:34)

Offline
What i ment is what i said later, for each indivisual sprite do it set x to scroll x plus 480 and 960 and such.
Offline
Help please? OK, I notice in this game http://scratch.mit.edu/projects/JP1894/119830 the author can just put in <point in direction( -90 )) and the sprite will turn to the opposite direction. When I do the same thing, my sprite rotates 180 degrees. It's the exact same command that does something different?
Last edited by thecooltodd (2008-03-18 22:17:52)
Offline
I know why. Next to the thing you can rotate the sprite with there will be three things. a circular arrow, a sideways arrow, and some other thing. Click the side ways arrow. Now it will work.
Offline
Wow, I didn't even notice that. Thanks
What does the third thing do?
Offline