Download and import, like sprites or costumes? I think Mathwizz made one once, I'll see if I can still find it. I was using it to create a project that could install and update itself from the internet.
Right: Mathwizz has a "add costume from online image[] " block as block 54 in the files section of the Panther blocks.
EDIT: It also works for sounds. I can't find the sprite importer, though, I'm afraid
Last edited by sparks (2012-01-11 06:35:35)
Offline
sparks wrote:
Download and import, like sprites or costumes? I think Mathwizz made one once, I'll see if I can still find it. I was using it to create a project that could install and update itself from the internet.
Right: Mathwizz has a "add costume from online image[] " block as block 54 in the files section of the Panther blocks.
EDIT: It also works for sounds. I can't find the sprite importer, though, I'm afraid
That was nXIII.
Offline
The "When %w is true" block doesn't work, even with the improved code.
Reason? No "OffscreenWorldMorph->processWhenConditions"
Absolutely nothing like it there.
Offline
SJRCS_011 wrote:
The "When %w is true" block doesn't work, even with the improved code.
Reason? No "OffscreenWorldMorph->processWhenConditions"
Absolutely nothing like it there.
i tried that block before... it worked for me
Offline
nathanprocks wrote:
SJRCS_011 wrote:
The "When %w is true" block doesn't work, even with the improved code.
Reason? No "OffscreenWorldMorph->processWhenConditions"
Absolutely nothing like it there.i tried that block before... it worked for me
Are you using source code or normal program?
Offline
Took me a while, I know, but I've updated the first post and the library signature to link to Rookwood101's excellent Antidote plugin ~~Sparks
Offline
You put control blocks in the Other Ops.
Why is the code for "make _ draggable" set the value isDraggable to false and not true?
Offline
rdococ wrote:
You put control blocks in the Other Ops.
Why is the code for "make _ draggable" set the value isDraggable to false and not true?
Thanks for the help! I don't know the answer to your question...
Offline
Here are 2 stretch blocks:
('set stretch to %n' #n #setStretchTo: 100) ('change stretch by %n' #- #changeStretchBy: 10)
No code required. This is for scratch-looks.
Offline
rdococ wrote:
Why is the code for "make _ draggable" set the value isDraggable to false and not true?
Looks like there was a typo. I'll fix that when I get a chance.
EDIT: Fixed.
Last edited by Greenatic (2012-01-16 19:26:38)
Offline
i can't find anything because this thread relies too much on images! all i get is a load of urls, so I have to click on all of them to see what they mean. I know the images were banned, but could someone replace the images with the new blocks? Non of the tutorials work because of this.
Offline
Use the link on the first post to get the images back.
They should replace the images with the new forum blocks though...it would probably run much faster!
Offline
I would say replacing the blocks we have with the new type is a good idea, except that as far as I know, it doesn't let you write your own block names, only deals with existing ones.
Offline
sparks wrote:
I would say replacing the blocks we have with the new type is a good idea, except that as far as I know, it doesn't let you write your own block names, only deals with existing ones.
broadcast clicked It allows that kind of block... Shout [YAZOO!] for (3) secs
Last edited by Zeusking19 (2012-01-28 15:14:07)
Offline
Not sure if I've shared this one already, but:
('%S is playing?' #b #IsPlaying:)
IsPlaying: t1 | t2 | t2 _ self soundNamed: t1 ifAbsent: [^ self]. ^ t2 isPlaying
Also: (I know this one hasn't been shared)
('when %S stopped play %S' #- #After:Play:)
After: t1 Play: t2 | t3 | t3 _ self soundNamed: t1 ifAbsent: [^ self]. [t3 isPlaying] whileTrue. self playSound: t2
Last edited by Greenatic (2012-01-29 17:18:18)
Offline
Oh goodness, I hate sounding new at things, but the fact of the matter is that I am, in fact, new. How in the world do I install custom blocks into my project? I know how to shift click the "R" but that's about all I know and the references are beyond my comprehension. Please help? Thanks.
- Zparx
Offline
Zparx wrote:
Oh goodness, I hate sounding new at things, but the fact of the matter is that I am, in fact, new. How in the world do I install custom blocks into my project? I know how to shift click the "R" but that's about all I know and the references are beyond my comprehension. Please help? Thanks.
- Zparx
OK, what's the extent of what you know? Do you know how to...
1. ...open the browser?
2. ...navigate the browser?
3. ...save changes in the browser?
4. ...save the image file?
Offline
Greenatic wrote:
OK, what's the extent of what you know? Do you know how to...
1. ...open the browser?
2. ...navigate the browser?
3. ...save changes in the browser?
4. ...save the image file?
It's okay, I jogged my memory and figured everything out. I probably should have done that before asking for help, lol. Thank you (:
** EDIT: When I uploaded the project to test out the new code, it did not work.
I installed codes for new buttons. Shift, control, etc. I implemented the control key in my project and it works when pressed to execute commands offline, but not online, could this be because I didn't "save the image file", like you mentioned above? Please help lol
*** I'm getting an error message that says scratch cannot locate SqueakV2.sources or Scratch.changes. Are those files downloaded seperately from the scratch installation?
Last edited by Zparx (2012-02-07 18:28:47)
Offline
Zparx wrote:
Greenatic wrote:
OK, what's the extent of what you know? Do you know how to...
1. ...open the browser?
2. ...navigate the browser?
3. ...save changes in the browser?
4. ...save the image file?It's okay, I jogged my memory and figured everything out. I probably should have done that before asking for help, lol. Thank you (:
** EDIT: When I uploaded the project to test out the new code, it did not work.
I installed codes for new buttons. Shift, control, etc. I implemented the control key in my project and it works when pressed to execute commands offline, but not online, could this be because I didn't "save the image file", like you mentioned above? Please help lol
*** I'm getting an error message that says scratch cannot locate SqueakV2.sources or Scratch.changes. Are those files downloaded seperately from the scratch installation?
1. Modified projects won't work online (with a few exceptions, such as the stretch blocks in the Java player and cloning in the Flash Player).
2. That error is caused if you don't save the image file. Go in, save it, and it should work.
Last edited by Greenatic (2012-02-07 18:33:34)
Offline
Zparx wrote:
*** I'm getting an error message that says scratch cannot locate SqueakV2.sources or Scratch.changes. Are those files downloaded seperately from the scratch installation?
You can download those files with the Scratch Source code here. The 'Scratch.changes' file stores changes to the image; with it, you can track changes and, instead of using the decompiled methods, you can see the original source (this allows you to see the original indentation and temporary variable names). The 'SqueakV2.sources' file stores Squeak's method sources.
Offline
nXIII wrote:
Zparx wrote:
*** I'm getting an error message that says scratch cannot locate SqueakV2.sources or Scratch.changes. Are those files downloaded seperately from the scratch installation?
You can download those files with the Scratch Source code here. The 'Scratch.changes' file stores changes to the image; with it, you can track changes and, instead of using the decompiled methods, you can see the original source (this allows you to see the original indentation and temporary variable names). The 'SqueakV2.sources' file stores Squeak's method sources.
...Or they could just "save image for end user".
Offline