Hi,
Hoping for someone with more brains than me
I am having problems when trying to complete a small word processing code, I have managed to design each letter and they display well enough. However I can't figure out how to stop my forever block sending the sprite off screen I have got it so I can type the first letter, then move to the start position for the next but then it moves before i type
Anyways, I have no doubt made little sense here but hopefully someone will get the gist of what i mean
Cheers in advance
Offline
Maybe make it so if the x position of the sprite is over a certain number it starts a new line?
Offline
[blocks]<when green flag clicked><clear><set pen size to(3)<pen up><go to x -220)y:(140)<point in direction(90)<forever> <if><(<x position> <>>-220 )><change{numberpressed}by(1)<pen up><go to x
(( <x position> <+> 20 )) )y:(140)[/blocks]
hopefully posted it correctly
cheers guys
Offline
[blocks]<when green flag clicked><clear><set pen size to(3<pen up> <go to x -220 )y:(140<point in direction(90<forever> <if><( <x position> <>>-220 )><change{key pressed }by(1<pen up> <go to x
((<x position> <+>20 )) 140 )y
[/blocks]
Offline
jmck75 wrote:
[blocks]<when green flag clicked><clear><set pen size to(3)<pen up><go to x
-220)y:(140)<point in direction(90)<forever> <if><(<x position> <>>-220 )><change{numberpressed}by(1)<pen up><go to x
(( <x position> <+> 20 )) )y:(140)[/blocks]
hopefully posted it correctly![]()
cheers guys
If you've solved it, then I'll request this topic to be closed.
Offline
Try using a script like this:
When [green flag] clicked
Forever
-insert letters a-y script here using the below "z" as a template-
if <key z pressed>
switch to costume [z]
stamp
change [x] by [10]
wait 0.1 seconds
end if
- only put in the following once -
if < ( x position ) > ( 170 ) >
set [x] to -170
change y by -10
end if
end forever
Obviously, duplicate the code I used for the letter "z" for letters a-y, as well - but that should work fabulously. It even resets the cursor at the end of the line! I haven't tested it, but it's likely to work. If you need any more help, just call upon me and I'll do my best.
Offline