This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-02-27 17:21:34

jassaf
New Scratcher
Registered: 2011-01-03
Posts: 2

Problems with lag

http://img651.imageshack.us/i/screenshot20110227at216.png/
http://img38.imageshack.us/i/screenshot20110227at216.png/

The two screenshots above show parts of my unfinished script. I am creating a brick breaker type game. Pressing the green flag starts the game, and the modular blocks show what happens when the green flag is pressed. The problem is that whenever I press the green flag, pressing the right and left arrow keys does not always work for some reason, and when it does the paddle moves once or twice, very slowly. When I press stop, the paddle moves perfectly by pressing the right or left arrow key. Anyone know why this is?

Offline

 

#2 2011-02-27 17:38:17

ian528
Scratcher
Registered: 2010-05-25
Posts: 500+

Re: Problems with lag

Your movement script is a tad bit too complex. Why not just use the "Change x by ( )" script.  wink  Also, do you know that you can't share a BYOB project?  hmm

Offline

 

#3 2011-02-28 01:01:41

jassaf
New Scratcher
Registered: 2011-01-03
Posts: 2

Re: Problems with lag

thanks for your help. it still lags though when i do the change x by ( ). and why cant you share projects?

Offline

 

Board footer