Here are some scripts to help you.
Moving:
[blocks]<when green flag clicked>
<forever if><mouse down?>
<wait until>< <not> <mouse down?>>>
<glide( 1 )secs to x
<mouse x>)y
<mouse y>
<end>
Clothing: (make a separate sprite for clothing)
<when green flag clicked>
<forever>
<go to[ Whatever the name of your player is
<end>
Talking:
<when green flag clicked>
<forever>
ask (blank)
<say[ answer
Password and Username:
<when I receive[ Log in
ask "what is your username?"
<if><( answer <=> Whatever your username is )>
ask "what is your password?"
<if><( answer <=> whatever your password is )>
<switch to costume[ Whatever the costume is
<end>
<end>
Last edited by samurai768 (2009-10-18 00:05:45)
Offline
very helpful, especially the moving script!

Offline
now all scratch needs is a network...

Offline
[block]<stop all>[/block] lol?
Offline
[blocks]<move( )steps>[/blocks] [blocks]<y position>[/blocks] [blocks]<x position>[/blocks]
Offline
TobiOliver: Scratch has had a network since 1.3, but it requires knowing how to program in another programming language like Python. But the Scratch Team is currently working on a new network feature called Mesh, which doesn't require any other programming language, just 2 computers with Scratch, if you would like to try this feature, look at BYOB 2.0
Offline
TobiOlivers wrote:
now all scratch needs is a network...
It does, it's called mesh and it's in Jens's BYOB.
Last edited by songhead95 (2009-10-27 20:25:41)
Offline
That's the new network system for Scratch Songhead.
Offline
Magnie wrote:
That's the new network system for Scratch Songhead.
Is it in 1.4 or just BYOB? I hacked my 1.4 to get mesh.
Offline
BYOB got Mesh from 1.4 but the is another network that requires knowledge in another programming language, like Python, networking has been available since 1.3
Offline
hmm... ill try and find more scripts!
here's some start button scripts...
darken when mouse over start:
<when green flag clicked>
<forever if><touching[ mouse?
<switch to costume[ (Darkened start button)
go to game when start clicked:
<when[ start ]clicked>
<broadcast[ (room name or name of what you want it to go to)
<hide>
go to game and show things:
This one is for the guy that is hidden until start is clicked...
<when I receive[ (room name or name of what you want it to go to)
<show>
<if><key[ (Left right down or up) ]pressed?>
If you said Right...
<move( 5 )steps>
If you said left...
<move( -5 )steps>
If you said down...
<change y by( -5
If you said up...
<change y by( 5
This script is for background...
<when I receive[ (room name or name of what you want it to go to)
switch to background (whatever the room name of background is)
And this script for stuff to show after hidden...
<when I receive[ (room name or name of what you want it to go to)
<show>
Hope this helped!
Offline
Here's a better script for the first one:
First, put a sprite wherever the mouse is.
Then do this:
When Green Flag Clicked
forever
wait until <mouse down>
wait until <not <mouse down>
glide ((distance to [sprite]) / (100)) secs to X ([X position of [sprite]]) Y ([Y position of [sprite]])
That way it goes at a constant rate, rather than long or short.
Offline
samurai768 wrote:
Here are some scripts to help you.
Moving:
[blocks]<when green flag clicked>
<forever if><mouse down?>
<wait until>< <not> <mouse down?>>>
<glide( 1 )secs to x<mouse x>)y
<mouse y>
<end>
Clothing: (make a separate sprite for clothing)
<when green flag clicked>
<forever>
<go to[ Whatever the name of your player is
<end>
Talking:
<when green flag clicked>
<forever>
ask (blank)
<say[ answer
Password and Username:
<when I receive[ Log in
ask "what is your username?"
<if><( answer <=> Whatever your username is )>
ask "what is your password?"
<if><( answer <=> whatever your password is )>
<switch to costume[ Whatever the costume is
<end>
<end>
check out this example www.scratch.mit.edu/users/dingding34/65654
Offline
How is that possible?? Only Scratch 1.4 has Mesh and BYOB 2.0, Scratch 1.3 had a network, but nothing near Mesh.
Offline
Magnie wrote:
How is that possible?? Only Scratch 1.4 has Mesh and BYOB 2.0, Scratch 1.3 had a network, but nothing near Mesh.
1.4 has mesh? I thought that was onlly in beta
BTW: How do you make mesh on byob?
Offline
Look @ Martiansharks projects or this post:
http://scratch.mit.edu/forums/viewtopic.php?id=23968
For the talking script:
Green Flag
forever
ask[] and wait
say answer for (length of answer / 2 )
end loop
Offline
Scratch 1.4 Mesh is hidden, you have to change the Source Code to make it shown. If you want Mesh running in BYOB, just go to share and it says "Host Mesh" just use broadcasts and variable to connect.
Offline
songhead95 wrote:
TobiOlivers wrote:
now all scratch needs is a network...
It does, it's called mesh and it's in Jens's BYOB.
How do you get the feature?
Offline
Magnie wrote:
Scratch 1.4 Mesh is hidden, you have to change the Source Code to make it shown. If you want Mesh running in BYOB, just go to share and it says "Host Mesh" just use broadcasts and variable to connect.
Magnie, I found a possible version of mesh in 1.3.
Just do the usual steps for 1.4, but then but click "extra menu" instead of the "menu/button actions" button.
Offline
Magnie? Great, another androgenous name.
Offline
fg123 wrote:
For the talking:
<greenflag>
<start forever>
<ask>
[say [answer] for (length of answer / 2)]
<end forever>
never thought of doing something like that for the wait period.
Offline