I have a pretty good computer. It runs most games at a decent 30-40 FPS. However, when i use scratch. input blocks are very laggy. What I mean is when I want to, say, ask a question, I grab and ask block, put it in place, but then when I click in the blank to fill it in, there is almost a 2 second timelag during which I can't type anything. This happens with any blocks where you have to fill in blanks (Are they called dialogue blocks, or are those just the "say" and "think" blocks?) As you can imagine, this makes some scripting go very slowly. Any tips or suggestions are good. This happens all the time, so I don't believe it has anything to do with the number of sprites or scripts, and I dont have any windows open. The script in question is only about 10 blocks long and is the only one in the game at the moment. I thought it was my computer, but since i got a new one this has still been happening.
Offline
My computer acts that way.
I found it helps excessively to make scripts shorter.
Offline
CheeseMunchy wrote:
My computer acts that way.
I found it helps excessively to make scripts shorter.
I must second this notion. I was having the exact same problem, and it was EXTREMELY annoying. However, after much frustration, I realized that the problem was the fact that I was programming a very long script. I simply broke the script apart into smaller pieces temporarily, filled in the dialogue (which was now SO much faster), and re-attached the pieces of script to each other.
Example:
[blocks]
Change
<when green flag clicked>
<say[ Hello ]for( 2 )secs>
<say[ Hello ]for( 2 )secs>
<say[ Hello ]for( 2 )secs>
<say[ Hello ]for( 2 )secs>
<say[ Hello ]for( 2 )secs>
<say[ Hello ]for( 2 )secs>
<say[ Hello ]for( 2 )secs>
<say[ Hello ]for( 2 )secs>
to
<when green flag clicked>
<say[ Hello ]for( 2 )secs>
<say[ Hello ]for( 2 )secs>
<say[ Hello ]for( 2 )secs>
<say[ Hello ]for( 2 )secs>
<say[ Hello ]for( 2 )secs>
<say[ Hello ]for( 2 )secs>
<say[ Hello ]for( 2 )secs>
<say[ Hello ]for( 2 )secs>
then fill in and put back together. Repeat if you need to. (Note: The example script here isn't long enough to cause lag, it's just an example.)
[/blocks]
Hope this helped!
Last edited by StoryMaker (2011-12-31 13:49:23)
Offline
But mine isnt that long. Its actually pretty small, 10 blocks or so
Offline
trekkie2000 wrote:
But mine isnt that long. Its actually pretty small, 10 blocks or so
You should still try splitting it up to see if that's the problem.
Offline
Alright, Ill try it guys. Thanks.
Offline