Matty3414 wrote:
BYOB - Motion
If Touching [ ] Go to x: [ ] y: [ ]
http://i.imgur.com/TIk2k.gif
If Touching [ ] Go to x: [ ] y: [ ] - Script
http://i.imgur.com/p1Cvu.gif
Enjoy!
I don't really see the point of that, as you could simply use:
[blocks]
<if><touching[ sprite1
<go to x 0 )y 0
<end>
[/blocks]
It only requires 2 extra lines.
Offline
Matty3414 wrote:
@floppy_gunk Use imgur.com it lets you upload a few at the same time
Ok, thanks!
60 SECOND RULE
Offline
Pecola1 wrote:
zorket wrote:
Quit scratch shared by Pecola1:
This block doesn't save your current progress if you are working on a project. I'm trying not to hurt Pecola1's feelings, but here is a code that asks if you want to save the project, first.Code:
exitScratch | t1 | t1 _ self ownerThatIsA: ScratchFrameMorph. t1 quitScratchIf the original code did the same thing, sorry.
I know, there is also one for making a boolean fit into it to decide weather or not you wan't to save progress, it is a little different.
blockspec('quit Scratch %b and save for later %b' #- #quit:saveImage:)
Code:
quit: t1 saveImage: t2 Smalltalk snapshot: t2 andQuit: t1When you open scratch it will be at the same EXACT position it was when it closed (if the second boolean is true.)
Again it is dinner time so i cannot put it on now.
If that works that would be so super-AWESOME.
sparks wrote:
scimonster wrote:
sparks wrote:
hint hint there?
Oh no.
But you have posted in other forums. See your list of posts.... I had no idea you could do that. You watch me a little too closely....
Simple taking a link.
EDIT: 1900th post!
Last edited by scimonster (2011-04-22 00:05:36)
Offline
floppy_gunk wrote:
I have some BYOB blocks:
http://img854.imageshack.us/img854/4091/3dpoint.gif
http://img714.imageshack.us/img714/9585/depth.gif
http://img163.imageshack.us/img163/3095/goto3d.gif
Sorry about using imageshack. It's the only image sharing tool I know that allows you to upload several images at the same time.
Wow floppy_gunk! These blocks are amazing!
Offline
I think we might need this block for a lot of physics games but I know no squeak at all.
Can someone please make this block?
Block name:
[rotate () degrees in relation to x:(), y:()]
or
[rotate () degrees in relation to (sprite 1)]
Requested for
Scratch - Motion
Offline
komodo66 wrote:
I think we might need this block for a lot of physics games but I know no squeak at all.
Can someone please make this block?
Block name:
[rotate () degrees in relation to x ), y )]
or
[rotate () degrees in relation to (sprite 1)]
Requested for
Scratch - Motion
That block right now is for BYOB (as the revolve block). Some could look at the code and use that for the scratch version. (Don't give me credit, give Kileymeister credit)
Offline
I have an idea. Can you add a Bingo blocks section to the Block Library? I'm working on some blocks with the image inserter and the multi-line string inserter.
By the way, here's code for a 'turn fill screen off' block for the library.
fillOff Smalltalk fullScreenMode: false. World restoreDisplay. self isSticky: false. self extent: Display extent - 60. Preferences disable: #noviceMode. Preferences enable: #warnIfNoSourcesFile. Preferences enable: #warnIfNoChangesFile. Preferences insertionPointColor: (Color r: 0.4 g: 1.0 b: 0.0). Preferences textHighlightColor: (Color r: 0.4 g: 1.0 b: 0.0)
Offline
We can add bingo blocks to the library, but unless they differ from the adding method of Scratch or Panther, they won't be added to a new section. For Bingo to have their own section the adding process would have to be specialist - like BYOB which uses existing blocks, or have different ways of defining block code - like Panther which has different argument names.
Offline
sparks wrote:
We can add bingo blocks to the library, but unless they differ from the adding method of Scratch or Panther, they won't be added to a new section. For Bingo to have their own section the adding process would have to be specialist - like BYOB which uses existing blocks, or have different ways of defining block code - like Panther which has different argument names.
What section would blocks with the image inserter go in?
Offline
spkshark wrote:
I got a good one!
http://scratch.mit.edu/static/icons/bud … %3A17%3A30
It Flags The Project On The Link!
You should post the code for this (if you know it.)
Offline
I've just found a load of Panther blocks lying around my computer in various folders and I use a lot of them a lot of the time, so you guys should have them too - extremely useful! Only problem is I can't remember which ones I coded and which ones were done by nXIII or Mathwizz with any certainty. I will attempt to credit them as I remember it, if they are miscredited I apologise, just remind me I got it wrong and I will change it!
[41]
[42]
[43]
[44]
[45]
[46]
[47]
[48]
[49]
[50]
[51]
[52]
[53]
[54]
[55]
It's too late for me to add them to the library and the statistics now, I will do it tomorrow if noone else has by then, but they are downloadable now using the numbers supplied!
Last edited by sparks (2011-04-22 18:48:36)
Offline
sparks wrote:
zorket wrote:
Quit scratch shared by Pecola1:
This block doesn't save your current progress if you are working on a project. I'm trying not to hurt Pecola1's feelings, but here is a code that asks if you want to save the project, first.Code:
exitScratch | t1 | t1 _ self ownerThatIsA: ScratchFrameMorph. t1 quitScratchIf the original code did the same thing, sorry.
Well why don't we add both? We can have a "quit Scratch without saving" block and a "ask to save and quit Scratch" block They both have different uses and applications
yes.
Offline
ProgrammingFreak wrote:
Should we have a library for other features? I might make that...
I was thinking of this it could be called The Method Library It would be for adding special things like mesh, blocks which need coding in other places (like a instrument block I made), new block types and more!
Offline
Hardmath123 wrote:
I think blocks should be grouped by type (reporter, boolean, stack, etc.), too.
I talked to sparks about that once and it would
1. take up too much space
and
2. take a long time to make!
also
3. take a long time to update!
Offline
Panther can't run any custom block with text containing a quotation mark (including all variables containing text) as input. Please fix it!
Also, when a reporter block is dragged into a text input in a custom block and then dragged back out, the text input field turns into a number input field!
Last edited by floppy_gunk (2011-04-22 20:41:47)
Offline
floppy_gunk wrote:
Panther can't run any custom block with text containing a quotation mark (including all variables containing text) as input. Please fix it!
Also, when a reporter block is dragged into a text input in a custom block and then dragged back out, the text input field turns into a number input field!
Do you mean arguments containing a quotation mark? I'd not noticed that before, let me look into it. any reporters containing text fail to work with your blocks because of the glitch you afore mentioned with dragging out creates a number arg. To fix this, make sure that string arguments are dealt with like so in your code:
import image $String$
t1_ t1 asString.
self importMedia: t1
so you ensure that any reporters with text are still taken!
We are working on the custom block glitch in 1.1, I hope it will be out soon ¬_¬ but if any of you source-code messers find the source of the glitch and how to fix it before us, please do!
Offline