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

#1 2012-02-12 10:51:27

krayfuse
New Scratcher
Registered: 2012-02-12
Posts: 4

My game is laggy!

Ever since i added theme music to my game, it has become laggy and choppy.

Here is the download link : http://www.mediafire.com/?464hd1rpvgvlz4j

I would upload it to scratch, but its not finished yet!

Offline

 

#3 2012-02-12 11:27:51

krayfuse
New Scratcher
Registered: 2012-02-12
Posts: 4

Re: My game is laggy!

I have tooken out the sound, and its stopped lagging. For now, i will leave it out, but if anyone else has a soloution on how to have proper music playing, please comment  tongue

Offline

 

#4 2012-02-12 11:58:21

silvershine
Scratcher
Registered: 2010-11-21
Posts: 500+

Re: My game is laggy!

Yes, music can really make your projects lag. Probably the best solution to this problem is to choose music loops that you can just play over and over like this:

when flag clicked
forever
play sound [music loop v] until done
end

Offline

 

#5 2012-02-12 12:17:25

krayfuse
New Scratcher
Registered: 2012-02-12
Posts: 4

Re: My game is laggy!

Well, what i have done is :

when i receive [main menu]
forever
   stop all sounds
   play [majoras mask clocktown day 1] until done
end
hopefully that worked. Anyways, i have done that for 2 sounds. The main menu music that comes up with the main menu, which comes up once the green flag has been pressed, and when you click on start, it will play the level music.

Offline

 

#6 2012-02-14 08:42:21

Splodgey
Scratcher
Registered: 2011-04-26
Posts: 500+

Re: My game is laggy!

An Option for music which will stop the music script when it is off might help. Also going through it and finding scripts that are running when they don't need to be and stopping them, Can really improve performance.

Offline

 

Board footer