OK, I am making a 1s1s project with a fairly long script. If I scroll down past a certain point, the script just stops rendering at that certain point. I tried dragging a block out from past that point, and it became visible again and followed my mouse around perfectly normally until I dropped it somewhere else. Does anyone know how to fix this? (Not being able to see the scripts is a bit of an inconvenience...)
Screenshot:
Last edited by nXIII (2010-02-24 11:58:22)
Offline
Off-topic: What are those blocks at the blocks palette?
Offline
Off topic: It has to do with this, I think...
On topic: For long scripts, sometimes it can go far enough that you reach a point in which it can't... I don't know the perfect way to say this.
Offline
mathematics wrote:
Off-topic: What are those blocks at the blocks palette?
That's either BYOB or blocks created by changing the Scratch code.
Offline
mathematics wrote:
Off-topic: What are those blocks at the blocks palette?
Yea... they are blocks I made by modifying the blockSpecs. Interestingly enough, all of them use already-defined functions. I find them very useful, along with my 'sprite name' blocks, etc.
Last edited by nXIII (2010-02-26 16:38:03)
Offline
nXIII wrote:
mathematics wrote:
Off-topic: What are those blocks at the blocks palette?
Yea... they are blocks I made by modifying the blockSpecs. Interestingly enough, all of them use already-defined functions. I find them very useful, along with my 'sprite name' blocks, etc.
Could you list your collection? I would like to see them.
Offline
nXIII wrote:
mathematics wrote:
Off-topic: What are those blocks at the blocks palette?
Yea... they are blocks I made by modifying the blockSpecs. Interestingly enough, all of them use already-defined functions. I find them very useful, along with my 'sprite name' blocks, etc.
For some of those made-up blocks, couldn't you just use a list?
Offline
mathematics wrote:
Off-topic: What are those blocks at the blocks palette?
http://i45.tinypic.com/28ip7k2.png <---- There's the pic.
Last edited by scratch_yoshi (2010-04-11 21:00:29)
Offline
Jonathanpb wrote:
For some of those made-up blocks, couldn't you just use a list?
Yes but mine are a lot faster. no parsing, just BOOM. They work. And sprite name and ascii blocks don't have anything to do with lists...
Offline
nXIII wrote:
Jonathanpb wrote:
For some of those made-up blocks, couldn't you just use a list?
Yes but mine are a lot faster. no parsing, just BOOM. They work. And sprite name and ascii blocks don't have anything to do with lists...
I just can't figure out how to make the blocks actually work... i know how to make them, though.
Offline
The-Whiz wrote:
nXIII wrote:
Jonathanpb wrote:
For some of those made-up blocks, couldn't you just use a list?
Yes but mine are a lot faster. no parsing, just BOOM. They work. And sprite name and ascii blocks don't have anything to do with lists...
I just can't figure out how to make the blocks actually work... i know how to make them, though.
But you're a Whiz! You have to know!
I wish I knew.
Offline
yes it's annoying! this is what i did ,i used [blocks]<move( 10 )steps>[/blocks] about 4096 times and about 15/4096 remains hidden and when i clicked on it ,you just cant move the mouse-pointer for about 1 sec. and it hides again any ideas??
Last edited by 3-14159265358979323 (2010-02-27 20:04:40)
Offline
The-Whiz wrote:
nXIII wrote:
Jonathanpb wrote:
For some of those made-up blocks, couldn't you just use a list?
Yes but mine are a lot faster. no parsing, just BOOM. They work. And sprite name and ascii blocks don't have anything to do with lists...
I just can't figure out how to make the blocks actually work... i know how to make them, though.
OK, now that I have BBCode and no 500-character limit:
1. Turn fill screen off (by shift-clicking on the R in the Scratch logo)
2. a) Open the world menu by clicking in the whitespace
b) Click Open..., browser
3. You can make the window that pops up a bit bigger, if you want, by clicking near the corner and dragging, or click the menu icon near the top left and selecting fullscreen.
4. Select Scratch-Objects, then:
a) Click ScriptableScratchMorph if you want your block available to both the stage and the sprites
b) Click ScratchSpriteMorph if you want your block to be available to just the sprites
c) Click ScratchStageMorph if you want your block to be available to just the stage
5. Click the category you would like to put the function in (or ctrl-click and click new category...
6. In the bottom panel, delete the selected text
7. Type the function name in the following format:
name: t1 nameContinued: t2
Where name and nameContinued make up the name of the function (split between the arguments, t1 and t2)
For example:
setVar: t1 to: t2
8. If you use temporary variables in your function, on the next line put the variables, separated by spaces, between two '|'s. For example:
| t3 t4 t5 |
9. On the next line, write your code, for example: (this opens a SystemWindow with the given label, sorry I didn't have time to make it display text too)
openWindow: t1
| window |
window _ SystemWindow new.
window setLabel: t1 asString.
window openInWorld: World
VERY IMPORTANT NOTE: the _ (underscore) character is used for assignment; it appears as a left-pointing arrow.
10. Press alt + s to save your changes
11. Click class where you see the three buttons instance, ?, and class
12. Add to the blockSpecs the correct spec for you block, with the format:
('spec %s etc.' #symbol #callToMethod 'defaultArg')
For example (using my method above):
('open window (label %s)' #- #openWindow: 'A Window!')
See this forum topic for specifics on making blockSpecs
13. Press alt + s again
14. Close all windows and turn fill screen back on
15. Click your new block to test if it runs properly
Last edited by nXIII (2010-02-27 20:36:53)
Offline
3-14159265358979323 wrote:
yes it's annoying! this is what i did ,i used [blocks]<move( 10 )steps>[/blocks] about 4096 times and about 15/4096 remains hidden and when i clicked on it ,you just cant move the mouse-pointer for about 1 sec. and it hides again any ideas??
That's my problem. The delay when you click it is because it is doing something with the script you're taking it out of, and the scripts are hidden for the same reason mine are.
Offline
nXIII wrote:
The-Whiz wrote:
nXIII wrote:
Yes but mine are a lot faster. no parsing, just BOOM. They work. And sprite name and ascii blocks don't have anything to do with lists...I just can't figure out how to make the blocks actually work... i know how to make them, though.
OK, now that I have BBCode and no 500-character limit:
1. Turn fill screen off (by shift-clicking on the R in the Scratch logo...
Wow... thanks!
Offline
<when green flag clicked>
<say[ THREAD DERAILED
<broadcast[ Rerail thread
<stop all>
I have a couple questions
1. What OS do you use?
2. How much RAM do you have in your computer?
3. Did you try to optimize your project?
Without answers, I won't be able to help you.
Offline
ThePCKid wrote:
<when green flag clicked>
<say[ THREAD DERAILED
<broadcast[ Rerail thread
<stop all>
I have a couple questions
1. What OS do you use?
2. How much RAM do you have in your computer?
3. Did you try to optimize your project?
Without answers, I won't be able to help you.
Um... XP, 2GB, kind of.
Offline
nXIII wrote:
ThePCKid wrote:
<when green flag clicked>
<say[ THREAD DERAILED
<broadcast[ Rerail thread
<stop all>
I have a couple questions
1. What OS do you use?
2. How much RAM do you have in your computer?
3. Did you try to optimize your project?
Without answers, I won't be able to help you.Um... XP, 2GB, kind of.
Okay uhh...
#1: Have you tried a newer version of Windows?
#2: That is the same amount of RAM that I have!
#3: You might have to optimize it a bit more... *long pause*
Offline
ThePCKid wrote:
nXIII wrote:
ThePCKid wrote:
<when green flag clicked>
<say[ THREAD DERAILED
<broadcast[ Rerail thread
<stop all>
I have a couple questions
1. What OS do you use?
2. How much RAM do you have in your computer?
3. Did you try to optimize your project?
Without answers, I won't be able to help you.Um... XP, 2GB, kind of.
Okay uhh...
#1: Have you tried a newer version of Windows?
#2: That is the same amount of RAM that I have!
#3: You might have to optimize it a bit more... *long pause*
It has nothing to do with what OS he's running, it happened to my Mac.
Offline
The-Whiz wrote:
ThePCKid wrote:
nXIII wrote:
Um... XP, 2GB, kind of.Okay uhh...
#1: Have you tried a newer version of Windows?
#2: That is the same amount of RAM that I have!
#3: You might have to optimize it a bit more... *long pause*It has nothing to do with what OS he's running, it happened to my Mac.
Hey The-Whiz, IT HAPPENED TO ME TOO!!! (BTW I use Vista)
Offline
This is getting off-topic ...
Offline
<when green flag clicked>
<say[ THREAD DERAILED
<broadcast[ Rerail thread
<stop all>
Stop getting off topic, please.
Offline
ThePCKid...
XP is one of the slim-est OS's. It's better to use XP than Vista or 7.
Mathematics...
It isn't really that off-topic. I posted a screenshot with nonexistent blocks, so what would you expect?
Offline
nXIII wrote:
XP is one of the slim-est OS's. It's better to use XP than Vista or 7.
Your right! *smacks myself in my face*
Offline
Yes - this is a bit of a glitch.
Scratch sets aside a certain size memory buffer in which to store the image for each Script. When we designed it, we never imagined that 1S1S would become a trend, so we just set it to a size which, for most projects that use multiple scripts, is way more than you'd ever need. But with large 1S1S projects, that limit is sometimes crossed. So the picture of the script just ends. oops!
I think RHY mentioned that they actually code things in two scripts, and then stick them together just at the end. So you could try that technique. Hope that helps
Offline