Hardmath123 wrote:
More blocks:
Go to random x/y position:Code:
('go to random x-y position' #- #randxypos)Code:
randxypos self gotoX: (self randomFrom: -240 to: 240) y: (self randomFrom: -180 to: 180)Distance to given point:
Code:
('distance to x %n y %n' #r #dist:and:)Code:
dist: t1 and: t2 ^ (self xpos - t1 * (self xpos - t1) + (self ypos - t2 * (self ypos - t2))) abs sqrtReports greater value of two numbers:
Code:
('greater of %n and %n' #r #greater:and:)Code:
greater: t1 and: t2 t1 > t2 ifTrue: [^ t1]. ^ t2Reports lesser value of two numbers:
Code:
('lesser of %n and %n' #r #lesser:and:)Code:
lesser: t1 and: t2 t1 < t2 ifTrue: [^ t1]. ^ t2Tells whether or not pen is down:
Code:
('Pen down?' #b #penDownorUp)Code:
penDownorUp ^ penDownGives a random truth value:
Code:
('true or false' #b #truefalse)Code:
truefalse | t3 t4 t5 | t3 _ 1 min: 2. t4 _ 1 max: 2. t5 _ RandomGen next * (t4 - t3) + t3. t3 isInteger & t4 isInteger ifTrue: [t5 _ (RandomGen next * (t4 + 1 - t3)) truncated + t3] ifFalse: [t5 _ RandomGen next * (t4 - t3) + t3]. t5 = 1 ifTrue: [^ true]. t5 = 2 ifTrue: [^ false]Gives one of the inputs, randomly. These are 2 blocks.
Code:
('%s or %s' #r #a:orb:) ('%b or %b' #b #a:orb:)Code:
a: hi orb: bye | t3 t4 t5 | t3 _ 1 min: 2. t4 _ 1 max: 2. t5 _ RandomGen next * (t4 - t3) + t3. t3 isInteger & t4 isInteger ifTrue: [t5 _ (RandomGen next * (t4 + 1 - t3)) truncated + t3] ifFalse: [t5 _ RandomGen next * (t4 - t3) + t3]. t5 = 1 ifTrue: [^ hi]. t5 = 2 ifTrue: [^ bye]Joins the two values with a space in between.
Code:
('join %s and %s with a space' #r #join:spaces: #hello #world)Code:
join: t1 spaces: t2 ^ t1 asString asUTF8 , ' ' , t2 asString asUTF8The key [^] pressed block with a string input instead.
Code:
('key %s pressed?' #b #keyPressed:)Code:
no code neededAsks the input in a dialog box and reports the value.
Code:
('ask %s and report' #r #ask:)Code:
ask: t1 | t2 | t2 _ StringDialog ask: t1. ^ t2
You do noticed some of those blocks were copied. Like the or blocks. The only ones I see very necessary are the lesser of, greater of, distance to, random x y, ask and report.
Last edited by Pecola1 (2010-12-18 15:12:41)
Offline
My internet has been down and may go down again
Offline
sparks wrote:
does anyone have the link to the script image for meowmeow55's http://img193.imageshack.us/img193/5361/19709349.gif block? I accidentally lost it while updating
Offline
How does the quit BYOB block work? Freeze up?
Offline
sparks wrote:
does anyone have the link to the script image for meowmeow55's http://img193.imageshack.us/img193/5361/19709349.gif block? I accidentally lost it while updating
Here it is!
I keep the URLs of everything I upload to Tinypic in a handy text file
Pecola1 wrote:
How does the quit BYOB block work? Freeze up?
See this thread.
Offline
Yes I made the block and noticed i was playing around once and made it! It closed BYOB and I was sad cuz I didn't get to save it.
Offline
New Panther block (the following is not a joke)
Pecola1 obsolete! - #FF0000 self error
Or
First box
obsolete!
second box
-
third box
self error
and the color is red
Last edited by Pecola1 (2010-12-18 17:57:54)
Offline
I found out how to make a transparent block on Panther! (you all probably know this) In the color box click and then drag it off of the Panther window.
Offline
I felt like making a block just now, so here it is!
It would probably give you better results if you made it atomic.
It's also uploaded here!
Offline
You put so much work into this guide sparks
Offline
which guide?
_______________________________________________________
Meowmeow55, I have emailed you a load of motion blocks! Let me know when they're hosted!
Last edited by sparks (2010-12-19 07:47:59)
Offline
Daffy22 wrote:
Just an idea... why don't you make this into a website? Maybe you could add a form were users can upload their own block automatically.
I've been thinking about this for a while and there are a lot of things to consider there.
For:
A website would allow me to moderate it, and probably allow me to cut back on the amount of work needed to add a block.
With a website, a form could potentally allow a user to instantly share their blocks.
Catagorised searching, download counting and other nifty tools could be introduced to make things more exciting and easy to use.
Other people could act as moderators when I'm busy or on holiday.
Once I leave Scratch (going to Uni soon) Someone will be able to keep this post alive.
Against:
This is currently on the Scratch site. It makes it part of the community and is easily accessable for all scratchers.
It's an I-topic'd thread, and I'm not sure clearing it and just posting a link to a website I own is allowed...
Constant posts keep this thread near the top, where new users are likely to discover it and benifit from the contents. Allowing it to sink to the bottom will reduce the usage it gets. Not as many people will see it through the stickied link post at the top.
I quite enjoy exploiting the bbocode in every way possible to make this an unusual and colourful thread. It's a challange!
I'd have to pay for a website host.
I don't know much HTML and next to no php. So most of the features in the "for" section above would not be possible to implement.
______________________________________________________________________________
So if all the problems in the against section could be solved more or less, Yes, I'd love to make it a website
Last edited by sparks (2010-12-19 15:32:14)
Offline
sparks wrote:
Daffy22 wrote:
Just an idea... why don't you make this into a website? Maybe you could add a form were users can upload their own block automatically.
I've been thinking about this for a while and there are a lot of things to consider there.
For:
A website would allow me to moderate it, and probably allow me to cut back on the amount of work needed to add a block.
With a website, a form could potentally allow a user to instantly share their blocks.
Catagorised searching, download counting and other nifty tools could be introduced to make things more exciting and easy to use.
Other people could act as moderators when I'm busy or on holiday.
Once I leave Scratch (going to Uni soon) Someone will be able to keep this post alive.
Against:
This is currently on the Scratch site. It makes it part of the community and is easily accessable for all scratchers. - Still use this topic as a suggestions thread
It's an I-topic'd thread, and I'm not sure clearing it and just posting a link to a website I own is allowed...
Constant posts keep this thread near the top, where new users are likely to discover it and benifit from the contents. Allowing it to sink to the bottom will reduce the usage it gets. Not as many people will see it through the stickied link post at the top. - Still use this topic as a suggestions thread
I quite enjoy exploiting the bbocode in every way possible to make this an unusual and colourful thread. It's a challange! - You haven't tried HTML yet
I'd have to pay for a website host. - No there are 1000's of free hosts
I don't know much HTML and next to no php. So most of the features in the "for" section above would not be possible to implement. - I don't mind making scripts for you
______________________________________________________________________________
So if all the problems in the against section could be solved more or less, Yes, I'd love to make it a website
I can help with a few of the against thing
Offline
Sounds interesting... If you want to work in collaberation with me, Daffy22, I'd love to give it a go (If you've got time with all the other stuff you're doing!) Certainly, I've got the next two weeks off sixthform, so apart from a few essays, I have bundles of time!
Offline
I tested the hide and show cursor blocks. they work!
Offline
sparks wrote:
Sounds interesting... If you want to work in collaberation with me, Daffy22, I'd love to give it a go (If you've got time with all the other stuff you're doing!) Certainly, I've got the next two weeks off sixthform, so apart from a few essays, I have bundles of time!
I was thinking about this for a while, but I never got around to talking about it. I'd love to help!
Offline
My thoughts about the website idea:
It sounds like a good idea at first, but I think that is being easily accessible is very important. With it being a website scratchers will be drawn away.
The text on the home-post is great, but wouldn't have the same welcoming feel if had a link at the end.
Oh, and I have the giant key blocks for the download thing. I'll send them to meowmeow55 now.
Last edited by SSBBM (2010-12-19 17:17:00)
Offline
SSBBM wrote:
Oh, and I have the giant key blocks for the download thing. I'll send them to meowmeow55 now.
You left off a bunch of script in the <key [] pressed?> block!
Offline