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

#1 2009-10-18 00:05:29

samurai768
Scratcher
Registered: 2009-07-21
Posts: 1000+

Making a Club-Penguin-like game? Click here.

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 sad   <mouse x>)y sad  <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

 

#2 2009-10-18 01:06:47

dogdog
Scratcher
Registered: 2007-10-12
Posts: 70

Re: Making a Club-Penguin-like game? Click here.

cool!

Offline

 

#3 2009-10-18 19:09:22

TobiOlivers
Scratcher
Registered: 2009-05-20
Posts: 76

Re: Making a Club-Penguin-like game? Click here.

very helpful, especially the moving script!


http://i987.photobucket.com/albums/ae353/NintendoTobi/Meepsig.png
I Am Meep, yes.

Offline

 

#4 2009-10-18 19:11:00

TobiOlivers
Scratcher
Registered: 2009-05-20
Posts: 76

Re: Making a Club-Penguin-like game? Click here.

now all scratch needs is a network...


http://i987.photobucket.com/albums/ae353/NintendoTobi/Meepsig.png
I Am Meep, yes.

Offline

 

#6 2009-10-27 15:10:00

rdococ
Scratcher
Registered: 2009-10-11
Posts: 1000+

Re: Making a Club-Penguin-like game? Click here.

[blocks]<move(  )steps>[/blocks]  [blocks]<y position>[/blocks]  [blocks]<x position>[/blocks]

Offline

 

#7 2009-10-27 17:20:48

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Making a Club-Penguin-like game? Click here.

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

 

#8 2009-10-27 20:24:52

songhead95
Scratcher
Registered: 2008-03-19
Posts: 100+

Re: Making a Club-Penguin-like game? Click here.

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

 

#9 2009-10-27 22:54:01

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Making a Club-Penguin-like game? Click here.

That's the new network system for Scratch Songhead.

Offline

 

#10 2009-10-28 07:37:17

songhead95
Scratcher
Registered: 2008-03-19
Posts: 100+

Re: Making a Club-Penguin-like game? Click here.

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

 

#11 2009-10-28 11:34:56

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Making a Club-Penguin-like game? Click here.

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

 

#12 2009-11-17 21:43:14

megalokiman
Scratcher
Registered: 2009-11-07
Posts: 27

Re: Making a Club-Penguin-like game? Click here.

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

 

#13 2009-11-18 02:01:02

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

Re: Making a Club-Penguin-like game? Click here.

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.


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

 

#14 2009-11-21 18:20:32

SHADOWDARK2
Scratcher
Registered: 2009-03-25
Posts: 95

Re: Making a Club-Penguin-like game? Click here.

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 sad   <mouse x>)y sad  <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


http://www.videogamesigs.com/generate/sigs/temp/VideoGameSigs4f972839579a4.png

Offline

 

#15 2009-11-21 18:57:04

cds56
Scratcher
Registered: 2008-05-02
Posts: 500+

Re: Making a Club-Penguin-like game? Click here.

If you didn't know, Mesh was even in 1.3.1! I think that's where I extracted the script to put in my .image file.

It's just not implemented.


http://img192.imageshack.us/img192/909/meowdevlogo.pnghttp://i32.tinypic.com/pucti.png

Offline

 

#16 2009-11-21 22:59:10

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Making a Club-Penguin-like game? Click here.

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

 

#17 2009-11-22 12:44:37

samurai768
Scratcher
Registered: 2009-07-21
Posts: 1000+

Re: Making a Club-Penguin-like game? Click here.

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  sad

BTW: How do you make mesh on byob?

Offline

 

#18 2009-11-22 12:51:34

fg123
Scratcher
Registered: 2008-11-13
Posts: 1000+

Re: Making a Club-Penguin-like game? Click here.

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


Hai.

Offline

 

#19 2009-11-23 10:15:04

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Making a Club-Penguin-like game? Click here.

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

 

#20 2010-01-07 20:51:38

megalokiman
Scratcher
Registered: 2009-11-07
Posts: 27

Re: Making a Club-Penguin-like game? Click here.

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

 

#21 2010-02-04 22:09:07

GirWaffles64
Scratcher
Registered: 2009-08-09
Posts: 1000+

Re: Making a Club-Penguin-like game? Click here.

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.


hey kiddoes i'm back

Offline

 

#22 2010-02-04 23:13:05

Ace-of-Spades
Scratcher
Registered: 2010-01-08
Posts: 1000+

Re: Making a Club-Penguin-like game? Click here.

Magnie? Great, another androgenous name.


11110010100011010100011010101000100011011011001010111100101000110101000110101010001000110110110010101111001010001101010001101010100010001101101100101011110010100011010100011010101000100011011011001010
110101010010001010101010101010101010101010100110101010010101010010101001101011010101010010101010101

Offline

 

#23 2010-02-04 23:50:08

fg123
Scratcher
Registered: 2008-11-13
Posts: 1000+

Re: Making a Club-Penguin-like game? Click here.

For the talking:

<greenflag>
<start forever>
<ask>
[say [answer] for (length of answer / 2)]
<end forever>

Last edited by fg123 (2010-02-04 23:50:19)


Hai.

Offline

 

#24 2010-02-05 08:50:21

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: Making a Club-Penguin-like game? Click here.

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.


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

Board footer