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

#326 2013-01-17 04:42:20

Blazingwave
Scratcher
Registered: 2012-10-27
Posts: 500+

Re: Scripts Workshop: Give and get help with scripts

Auto007 wrote:

Blazingwave wrote:

JH1010 wrote:


Yes. New members are always appreciated.

Fixed.

Thanks

Oops...........
I am sorry.........
I must have made  that good and accurate without mistakes.....
Sorry about that
-----------------<<±>>--------------

About cloud variable...
Can anyone show us a program made with cloud variable ?
We can add that to solved problems or new program in intro post...
And people would also like it .

The official scratch 2.0 video has a section on cloud variables. See it here

Last edited by Blazingwave (2013-01-17 04:42:31)


http://i42.tinypic.com/t8nrlh.gif  http://blocks.scratchr.org/API.php?user=Blazingwave&amp;action=onlineStatus&amp;online=http://i49.tinypic.com/25flloj.gif=http://i45.tinypic.com/o8i97l.gif
http://i41.tinypic.com/s1lyyo.jpg

Offline

 

#327 2013-01-17 06:34:51

Aditya007
Scratcher
Registered: 2012-11-27
Posts: 63

Re: Scripts Workshop: Give and get help with scripts

Blazingwave wrote:

Auto007 wrote:

Blazingwave wrote:


Thanks

Oops...........
I am sorry.........
I must have made  that good and accurate without mistakes.....
Sorry about that
-----------------<<±>>--------------

About cloud variable...
Can anyone show us a program made with cloud variable ?
We can add that to solved problems or new program in intro post...
And people would also like it .

The official scratch 2.0 video has a section on cloud variables. See it here

Jh1010, u agreed to add me, but u didnt,

and Brainwave, cloud variable will be available in 2.0 but not in 1.x


Wolf_OS!!!  smile  Check My Stuff  tongue  Need Help?  Currently, I am http://blocks.scratchr.org/API.php?user=Aditya007&amp;action=onlineStatus&amp;type=square
http://i49.tinypic.com/15gy1j6.jpg

Offline

 

#328 2013-01-17 13:23:20

JH1010
Scratcher
Registered: 2012-05-31
Posts: 1000+

Re: Scripts Workshop: Give and get help with scripts

Aditya007 wrote:

Jh1010, u agreed to add me, but u didnt,

Terribly sorry. I will add you right now.

Offline

 

#329 2013-01-17 19:25:18

ErnieParke
Scratcher
Registered: 2010-12-03
Posts: 1000+

Re: Scripts Workshop: Give and get help with scripts

mythbusteranimator wrote:

ErnieParke wrote:

mythbusteranimator wrote:


Um...if it makes it easier not to, than no, you don't need to add that.  smile

Okay; I'll get your script to you tomorrow then. I'm a bit tight on time right now.

Sure.  smile

I'll be at Winter Jam in Reading tomorrow, so I might get it Friday.

Ugh… looks like I ran out of time. I will certainly get to you tomorrow.


http://i46.tinypic.com/35ismmc.png

Offline

 

#330 2013-01-17 19:29:05

Auto007
Scratcher
Registered: 2012-11-25
Posts: 100+

Re: Scripts Workshop: Give and get help with scripts

Blazingwave wrote:

Auto007 wrote:

Blazingwave wrote:


Thanks

Oops...........
I am sorry.........
I must have made  that good and accurate without mistakes.....
Sorry about that
-----------------<<±>>--------------

About cloud variable...
Can anyone show us a program made with cloud variable ?
We can add that to solved problems or new program in intro post...
And people would also like it .

The official scratch 2.0 video has a section on cloud variables. See it here

No  no ,, I mean programs made by us as an example .

Offline

 

#331 2013-01-17 19:38:03

Blazingwave
Scratcher
Registered: 2012-10-27
Posts: 500+

Re: Scripts Workshop: Give and get help with scripts

Auto007 wrote:

Blazingwave wrote:

Auto007 wrote:

Blazingwave wrote:

Thanks

Oops...........
I am sorry.........
I must have made  that good and accurate without mistakes.....
Sorry about that
-----------------<<±>>--------------

The official scratch 2.0 video has a section on cloud variables. See it here

No  no ,, I mean programs made by us as an example .

You will see lots when the beta is released on January the 28th but for now I think only alpha testers can see scratch 2.0 projects


http://i42.tinypic.com/t8nrlh.gif  http://blocks.scratchr.org/API.php?user=Blazingwave&amp;action=onlineStatus&amp;online=http://i49.tinypic.com/25flloj.gif=http://i45.tinypic.com/o8i97l.gif
http://i41.tinypic.com/s1lyyo.jpg

Offline

 

#332 2013-01-17 20:53:53

ErnieParke
Scratcher
Registered: 2010-12-03
Posts: 1000+

Re: Scripts Workshop: Give and get help with scripts

Blazingwave wrote:

Auto007 wrote:

Blazingwave wrote:


The official scratch 2.0 video has a section on cloud variables. See it here

No  no ,, I mean programs made by us as an example .

You will see lots when the beta is released on January the 28th but for now I think only alpha testers can see scratch 2.0 projects

Don't forget that there's the forum code that you could use.

To Auto007:
Although this wasn't done in this thread, earlier I had created a script to find out how many people were online at a moment, and it used the User ID block. Would this fit your needs?


http://i46.tinypic.com/35ismmc.png

Offline

 

#333 2013-01-18 06:55:25

Aditya007
Scratcher
Registered: 2012-11-27
Posts: 63

Re: Scripts Workshop: Give and get help with scripts

JH1010 wrote:

Aditya007 wrote:

Jh1010, u agreed to add me, but u didnt,

Terribly sorry. I will add you right now.

Thxxx!


Wolf_OS!!!  smile  Check My Stuff  tongue  Need Help?  Currently, I am http://blocks.scratchr.org/API.php?user=Aditya007&amp;action=onlineStatus&amp;type=square
http://i49.tinypic.com/15gy1j6.jpg

Offline

 

#334 2013-01-18 11:09:41

mythbusteranimator
Scratcher
Registered: 2012-02-28
Posts: 1000+

Re: Scripts Workshop: Give and get help with scripts

ErnieParke wrote:

mythbusteranimator wrote:

ErnieParke wrote:


Okay; I'll get your script to you tomorrow then. I'm a bit tight on time right now.

Sure.  smile

I'll be at Winter Jam in Reading tomorrow, so I might get it Friday.

Ugh… looks like I ran out of time. I will certainly get to you tomorrow.

It's fine.  smile


http://www.foxtrot.com/comics/2012-04-01-fdb37077.gif
clicky

Offline

 

#335 2013-01-18 20:00:54

ErnieParke
Scratcher
Registered: 2010-12-03
Posts: 1000+

Re: Scripts Workshop: Give and get help with scripts

mythbusteranimator wrote:

ErnieParke wrote:

mythbusteranimator wrote:

Sure.  smile

I'll be at Winter Jam in Reading tomorrow, so I might get it Friday.

Ugh… looks like I ran out of time. I will certainly get to you tomorrow.

It's fine.  smile

Okay, so there are several ways that you could attack this. First, I'll start with the movement of the buttons. You could do it either of these 4 ways:

1). You could use a glide block for simple situations:

glide (2) secs to x: (-97) y: (-87)

2). You could have the rotation lock of your buttons set to "no rotation" Then, in your sprite, you could make it turn 1 degree and move a step 90 times. In other words, you'd need a script similar to this:

point in direction [90 v]
repeat (90)//Or 90/turn.
 turn ccw (1) degrees//This is turn.
 move (1) steps
end

3). As a slightly more complex version of the above, instead of having the sprite's rotation lock set to "no rotation", you could create a variable called direction. Then, use this script:

set [direction* v] to (90)
repeat (90)
 change x by (([sin v] of (direction*)) * (1))//1 is the speed of the turn.
 change y by (([cos v] of (direction*)) * (1))
 change [direction* v] by (-1)
end

You could also add smooth movement into the script by adding doing this:

set [direction* v] to (90)
repeat (90)
 change x by (([sin v] of (direction*)) * (((45) - ([abs v] of (((direction*) mod (90)) - (45)))) / (10)))//10 is the slowness of the turn.
 change y by (([cos v] of (direction*)) * (((45) - ([abs v] of (((direction*) mod (90)) - (45)))) / (10)))
 change [direction* v] by (-1)
end

4). The last of the four methods is here. Basically it utilizes velocity to create the button's movement. It's also easily let's your buttons move in an ellipse as opposed to the circles of the above scripts, unless you add a few modifications, which you can ask me about. So, what you'll need is a variable called x velocity and y velocity. Then, you'll need to use this:

set [x velocity v] to (5)
set [y velocity v] to (0)
repeat (6)
 change x by (x velocity)
 change y by (y velocity)
 change [x velocity v] by (-1)
 change [y velocity v] by (1)
end

Or, if you want an elipse, you could try something more similar to this:

set [x velocity v] to (5)
set [y velocity v] to (0)
repeat (6)
 change x by (x velocity)
 change y by (y velocity)
 change [x velocity v] by (-1)
 change [y velocity v] by (2)//Key change.
end

Note: Remember, these all aren't going to be exactly 100% of what you wanted, so some tweaking will be needed. Also, if you can't see my comments very well, you might have to quote me.

Anyway, phewph! That's was quite a bit to type! I'll get you the rest in the next post when I can.

Last edited by ErnieParke (2013-01-18 22:08:05)


http://i46.tinypic.com/35ismmc.png

Offline

 

#336 2013-01-19 05:39:18

Auto007
Scratcher
Registered: 2012-11-25
Posts: 100+

Re: Scripts Workshop: Give and get help with scripts

Can You show us a script with cloud variable ?
May be of a chatroom ?

Offline

 

#337 2013-01-19 06:11:31

GlennWright
Scratcher
Registered: 2012-08-15
Posts: 100+

Re: Scripts Workshop: Give and get help with scripts

Auto007 wrote:

Can You show us a script with cloud variable ?
May be of a chatroom ?

Cloud variables work just like the variables in Scratch 1.4.


Hello everyone!
http://img5.imageshack.us/img5/465/dot.png

Offline

 

#338 2013-01-19 06:51:27

Auto007
Scratcher
Registered: 2012-11-25
Posts: 100+

Re: Scripts Workshop: Give and get help with scripts

GlennWright wrote:

Auto007 wrote:

Can You show us a script with cloud variable ?
May be of a chatroom ?

Cloud variables work just like the variables in Scratch 1.4.

I know that.  big_smile
But I actualy wanted a chatroom script .  hmm  . plz show me !

Offline

 

#339 2013-01-19 10:22:22

JH1010
Scratcher
Registered: 2012-05-31
Posts: 1000+

Re: Scripts Workshop: Give and get help with scripts

Auto007 wrote:

GlennWright wrote:

Auto007 wrote:

Can You show us a script with cloud variable ?
May be of a chatroom ?

Cloud variables work just like the variables in Scratch 1.4.

I know that.  big_smile
But I actualy wanted a chatroom script .  hmm  . plz show me !

2.0 blocks are not compatible with the 1.4 block plugin. No such plugin has been created yet in Scratch 2.0. I am hoping that there will be on the beta site. If there is I will make a new Scripts Workshop thread there. Please ask your question again then.

Offline

 

#340 2013-01-19 11:05:56

GlennWright
Scratcher
Registered: 2012-08-15
Posts: 100+

Re: Scripts Workshop: Give and get help with scripts

Auto007 wrote:

GlennWright wrote:

Auto007 wrote:

Can You show us a script with cloud variable ?
May be of a chatroom ?

Cloud variables work just like the variables in Scratch 1.4.

I know that.  big_smile
But I actualy wanted a chatroom script .  hmm  . plz show me !

Sorry! I didn't realise  smile


Hello everyone!
http://img5.imageshack.us/img5/465/dot.png

Offline

 

#341 2013-01-19 11:06:03

ErnieParke
Scratcher
Registered: 2010-12-03
Posts: 1000+

Re: Scripts Workshop: Give and get help with scripts

Auto007 wrote:

GlennWright wrote:

Auto007 wrote:

Can You show us a script with cloud variable ?
May be of a chatroom ?

Cloud variables work just like the variables in Scratch 1.4.

I know that.  big_smile
But I actualy wanted a chatroom script .  hmm  . plz show me !

I could get you one, though I'd have to do some testing first. I'll be back...

Okay, so here's what'll you'll need:

1). A cloud list. (Hiding)
2). A regular list. (Showing)

Now, you'll need these scripts:

when gf clicked//Chat.
forever
 ask [What would you like to say?] and wait
 add (answer) to [Global list v]
when gf clicked//Update script.
delete [all v] of [Regular list v]
repeat (5)
 add [0] to [Regular list v]
 add [0] to [Regular list v]
end
forever
 if <(length of [Global list v]) > (100)>
  delete [1 v] of [Global list v]
 end
 replace item [1 v] of [Regular list v] with (item ((length of [Global list v]) - (9)) of [global list v])
 replace item ((1) + (1)) of [Regular list v] with (item ((length of [Global list v]) - (8)) of [global list v])
 replace item ((1) + (2)) of [Regular list v] with (item ((length of [Global list v]) - (7)) of [global list v])
 replace item ((1) + (3)) of [Regular list v] with (item ((length of [Global list v]) - (6)) of [global list v])
 replace item ((1) + (4)) of [Regular list v] with (item ((length of [Global list v]) - (5)) of [global list v])
 replace item ((1) + (5)) of [Regular list v] with (item ((length of [Global list v]) - (4)) of [global list v])
 replace item ((1) + (6)) of [Regular list v] with (item ((length of [Global list v]) - (3)) of [global list v])
 replace item ((1) + (7)) of [Regular list v] with (item ((length of [Global list v]) - (2)) of [global list v])
 replace item ((1) + (8)) of [Regular list v] with (item ((length of [Global list v]) - (1)) of [global list v])
 replace item ((1) + (9)) of [Regular list v] with (item (length of [Global list v]) of [global list v])

I hope that this helps!

Last edited by ErnieParke (2013-01-19 11:19:41)


http://i46.tinypic.com/35ismmc.png

Offline

 

#342 2013-01-19 12:01:05

ErnieParke
Scratcher
Registered: 2010-12-03
Posts: 1000+

Re: Scripts Workshop: Give and get help with scripts

mythbusteranimator wrote:

ErnieParke wrote:

mythbusteranimator wrote:

Sure.  smile

I'll be at Winter Jam in Reading tomorrow, so I might get it Friday.

Ugh… looks like I ran out of time. I will certainly get to you tomorrow.

It's fine.  smile

Now, to add on to the above post; we need to create the skeleton for your script. So, if you're only using the right arrow key, then basically what you'll need is:

when gf clicked
set [choice v] to (0)
forever
 if (key [right arrow v] pressed?)
 wait (0) secs
 wait until <not (key [right arrow v]? pressed?)>
 if <(choice) = (0)>
  Movement script...
 end
 if <(choice) = (1)>
  Movement script...
 end
 if <(choice) = (2)>
  Movement script...
 end
 if <(choice) = (3)>
  Movement script...
 end
end

I hope that this helps!

Last edited by ErnieParke (2013-01-19 12:01:33)


http://i46.tinypic.com/35ismmc.png

Offline

 

#343 2013-01-19 13:09:02

Auto007
Scratcher
Registered: 2012-11-25
Posts: 100+

Re: Scripts Workshop: Give and get help with scripts

ErnieParke wrote:

Auto007 wrote:

GlennWright wrote:


Cloud variables work just like the variables in Scratch 1.4.

I know that.  big_smile
But I actualy wanted a chatroom script .  hmm  . plz show me !

I could get you one, though I'd have to do some testing first. I'll be back...

Okay, so here's what'll you'll need:

1). A cloud list. (Hiding)
2). A regular list. (Showing)

Now, you'll need these scripts:

when gf clicked//Chat.
forever
 ask [What would you like to say?] and wait
 add (answer) to [Global list v]
when gf clicked//Update script. Can you ckeck this once more ?
delete [all v] of [Regular list v]
repeat (5)
 add [0] to [Regular list v]//How do these work ?
 add [0] to [Regular list v]//How do these work ?
end
forever
 if <(length of [Global list v]) > (100)>
  delete [1 v] of [Global list v]
 end
 replace item [1 v] of [Regular list v] with (item ((length of [Global list v]) - (9)) of [global list v])
 replace item (2) of [Regular list v] with (item ((length of [Global list v]) - (8)) of [global list v])
 replace item (3) of [Regular list v] with (item ((length of [Global list v]) - (7)) of [global list v])
 replace item (4) of [Regular list v] with (item ((length of [Global list v]) - (6)) of [global list v])
 replace item (5) of [Regular list v] with (item ((length of [Global list v]) - (5)) of [global list v])
 replace item (6) of [Regular list v] with (item ((length of [Global list v]) - (4)) of [global list v])
 replace item (7) of [Regular list v] with (item ((length of [Global list v]) - (3)) of [global list v])
 replace item (8) of [Regular list v] with (item ((length of [Global list v]) - (2)) of [global list v])
 replace item (9) of [Regular list v] with (item ((length of [Global list v]) - (1)) of [global list v])
 replace item (10) of [Regular list v] with (item (length of [Global list v]) of [global list v])

I hope that this helps!

Ya !! it helped but can u ckeck this on once more, i have made changes. will this work ?

Offline

 

#344 2013-01-19 13:19:42

ErnieParke
Scratcher
Registered: 2010-12-03
Posts: 1000+

Re: Scripts Workshop: Give and get help with scripts

Auto007 wrote:

ErnieParke wrote:

Auto007 wrote:

I know that.  big_smile
But I actualy wanted a chatroom script .  hmm  . plz show me !

I could get you one, though I'd have to do some testing first. I'll be back...

Okay, so here's what'll you'll need:

1). A cloud list. (Hiding)
2). A regular list. (Showing)

Now, you'll need these scripts:

when gf clicked//Chat.
forever
 ask [What would you like to say?] and wait
 add (answer) to [Global list v]
when gf clicked//Update script. Can you ckeck this once more ?
delete [all v] of [Regular list v]
repeat (5)
 add [0] to [Regular list v]//How do these work ?
 add [0] to [Regular list v]//How do these work ?
end
forever
 if <(length of [Global list v]) > (100)>
  delete [1 v] of [Global list v]
 end
 replace item [1 v] of [Regular list v] with (item ((length of [Global list v]) - (9)) of [Global list v])
 replace item (2) of [Regular list v] with (item ((length of [Global list v]) - (8)) of [Global list v])
 replace item (3) of [Regular list v] with (item ((length of [Global list v]) - (7)) of [Global list v])
 replace item (4) of [Regular list v] with (item ((length of [Global list v]) - (6)) of [Global list v])
 replace item (5) of [Regular list v] with (item ((length of [Global list v]) - (5)) of [Global list v])
 replace item (6) of [Regular list v] with (item ((length of [Global list v]) - (4)) of [Global list v])
 replace item (7) of [Regular list v] with (item ((length of [Global list v]) - (3)) of [Global list v])
 replace item (8) of [Regular list v] with (item ((length of [Global list v]) - (2)) of [Global list v])
 replace item (9) of [Regular list v] with (item ((length of [Global list v]) - (1)) of [Global list v])
 replace item (10) of [Regular list v] with (item (length of [Global list v]) of [Global list v])

I hope that this helps!

Ya !! it helped but can u ckeck this on once more, i have made changes. will this work ?

Well, the [add (0) to [Regular list v]] block was added in so that there's actually something in the list to be replaced later on.

Also, If I'm correct, then in Scratch 2.0, you can't just type in which item you want into a
[replace item [blank] of [list v] with [blank]]
block, which is why you need the operators there.


http://i46.tinypic.com/35ismmc.png

Offline

 

#345 2013-01-19 13:58:14

Auto007
Scratcher
Registered: 2012-11-25
Posts: 100+

Re: Scripts Workshop: Give and get help with scripts

Well thanks . It works ! I made some modifications with filters and GUI , it works good . I have uploaded basic version on my test account - Auto007test . Check it if u want .

Last edited by Auto007 (2013-01-19 14:01:42)

Offline

 

#346 2013-01-19 14:05:26

ErnieParke
Scratcher
Registered: 2010-12-03
Posts: 1000+

Re: Scripts Workshop: Give and get help with scripts

Auto007 wrote:

Well thanks . It works ! I made some modifications with filters and GUI , it works good . I have uploaded basic version on my test account - Auto007test . Check it if u want .

Okay, I will. And your welcome!


http://i46.tinypic.com/35ismmc.png

Offline

 

#347 2013-01-20 13:33:49

JH1010
Scratcher
Registered: 2012-05-31
Posts: 1000+

Re: Scripts Workshop: Give and get help with scripts

bump

Offline

 

#348 2013-01-21 08:47:53

JH1010
Scratcher
Registered: 2012-05-31
Posts: 1000+

Re: Scripts Workshop: Give and get help with scripts

10000 views!

Offline

 

#349 2013-01-22 05:43:58

ianthestuntman
Scratcher
Registered: 2013-01-02
Posts: 100+

Re: Scripts Workshop: Give and get help with scripts

bump

Offline

 

#350 2013-01-22 07:34:55

Auto007
Scratcher
Registered: 2012-11-25
Posts: 100+

Re: Scripts Workshop: Give and get help with scripts

big_smile
big_smile
:p
:p
This is a awesome place to learn and make scratch.
but this will be vanquished in 2.0
so prepare a backup

Last edited by Auto007 (2013-01-22 07:36:16)

Offline

 

Board footer