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

#1 2012-06-04 00:20:12

Joshlolx
New Scratcher
Registered: 2012-05-17
Posts: 19

Game Optimization?

Hi guys, I'm having a problem with my game. It is really slow offline and on the java player, but not on the Flash player. Thanks! http://scratch.mit.edu/projects/Joshlolx/2558541

Offline

 

#2 2012-06-04 04:03:28

Joshlolx
New Scratcher
Registered: 2012-05-17
Posts: 19

Re: Game Optimization?

bump...  big_smile

Offline

 

#3 2012-06-04 04:08:26

Andres-Vander
Scratcher
Registered: 2010-09-16
Posts: 1000+

Re: Game Optimization?

Yeah the flash player is like 500 times faster or something (probably not, I just can't remember the number). Some projects don't work in the java player, and some don't work right in the flash player. Before you begin, you should know which one you're aiming for. If it's working well without hitches in the flash player, it's probably alright, and there's not much that can be done about the Java Player / Offline modes.


http://www.gifsoup.com/view1/2260823/flugelhorn-feline-o.gif

Offline

 

#4 2012-06-04 04:09:05

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

Re: Game Optimization?

There are a lot of posts about this... Such as this one. I'd advise reading that.

Andres-Vander wrote:

Yeah the flash player is like 500 times faster or something (probably not, I just can't remember the number). Some projects don't work in the java player, and some don't work right in the flash player. Before you begin, you should know which one you're aiming for. If it's working well without hitches in the flash player, it's probably alright, and there's not much that can be done about the Java Player / Offline modes.

In a project that does nothing, flash is 3333.333333333333* faster than the java player. (flash repeats forever loops 100,000* a second, java 30*, normal scratch 40*)

Also, you beat me to replying!  sad

Last edited by Splodgey (2012-06-04 04:11:36)

Offline

 

#5 2012-06-04 04:27:59

Joshlolx
New Scratcher
Registered: 2012-05-17
Posts: 19

Re: Game Optimization?

Andres-Vander wrote:

Yeah the flash player is like 500 times faster or something (probably not, I just can't remember the number). Some projects don't work in the java player, and some don't work right in the flash player. Before you begin, you should know which one you're aiming for. If it's working well without hitches in the flash player, it's probably alright, and there's not much that can be done about the Java Player / Offline modes.

Thanks so much! I have another problem though, it's about sound not playing  sad . And is there a scratch to exe that makes it into a flash exe or swf?

Offline

 

#6 2012-06-04 04:41:44

Joshlolx
New Scratcher
Registered: 2012-05-17
Posts: 19

Re: Game Optimization?

And now it keeps flickering -.-

Offline

 

#7 2012-06-04 05:08:35

SciTecCf
Scratcher
Registered: 2011-11-23
Posts: 1000+

Re: Game Optimization?

It'll flicker offline. All you need to do is test it in Presentation mode.


http://bit.ly/LCZEJRhttp://bit.ly/LSONcOhttp://bit.ly/LF3vIc
http://trinary.site40.net/images/scratchrank.php?username=SciTecCf&display=small

Offline

 

#8 2012-06-04 05:16:29

Joshlolx
New Scratcher
Registered: 2012-05-17
Posts: 19

Re: Game Optimization?

SciTecCf wrote:

It'll flicker offline. All you need to do is test it in Presentation mode.

How about the music? And it flickers because the terrainNum keeps changing from 0 to 1, etc...

Offline

 

#9 2012-06-04 06:07:07

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

Re: Game Optimization?

Joshlolx wrote:

Andres-Vander wrote:

Yeah the flash player is like 500 times faster or something (probably not, I just can't remember the number). Some projects don't work in the java player, and some don't work right in the flash player. Before you begin, you should know which one you're aiming for. If it's working well without hitches in the flash player, it's probably alright, and there's not much that can be done about the Java Player / Offline modes.

Thanks so much! I have another problem though, it's about sound not playing  sad . And is there a scratch to exe that makes it into a flash exe or swf?

The sounds could be something to do with your computer, were your speakers/headphones working? I don't think there's a "scratch to exe that makes it into a flash exe or swf"...

Last edited by Splodgey (2012-06-04 06:07:18)

Offline

 

#10 2012-06-04 06:15:40

Joshlolx
New Scratcher
Registered: 2012-05-17
Posts: 19

Re: Game Optimization?

Splodgey wrote:

Joshlolx wrote:

Andres-Vander wrote:

Yeah the flash player is like 500 times faster or something (probably not, I just can't remember the number). Some projects don't work in the java player, and some don't work right in the flash player. Before you begin, you should know which one you're aiming for. If it's working well without hitches in the flash player, it's probably alright, and there's not much that can be done about the Java Player / Offline modes.

Thanks so much! I have another problem though, it's about sound not playing  sad . And is there a scratch to exe that makes it into a flash exe or swf?

The sounds could be something to do with your computer, were your speakers/headphones working? I don't think there's a "scratch to exe that makes it into a flash exe or swf"...

Ok thanks, sound should work, scratch plays sounds on the 'sounds' tab correctly. Now another problem with scrolling. See for yourself  sad

Offline

 

#11 2012-06-04 07:12:57

Joshlolx
New Scratcher
Registered: 2012-05-17
Posts: 19

Re: Game Optimization?

IGNORE THAT, there's no sound now  sad , fixed the scrolling issue though (* you parentheses)

Offline

 

#12 2012-06-04 10:17:33

Joshlolx
New Scratcher
Registered: 2012-05-17
Posts: 19

Re: Game Optimization?

Help... bump...

Offline

 

#13 2012-06-04 10:23:54

Andres-Vander
Scratcher
Registered: 2010-09-16
Posts: 1000+

Re: Game Optimization?

Are the sounds MIDI sounds?


http://www.gifsoup.com/view1/2260823/flugelhorn-feline-o.gif

Offline

 

#14 2012-06-05 03:12:19

Joshlolx
New Scratcher
Registered: 2012-05-17
Posts: 19

Re: Game Optimization?

Andres-Vander wrote:

Are the sounds MIDI sounds?

mp3 and wavs, the battle and death music works, hmm, lemme try changing the bitrate

Offline

 

#15 2012-06-05 06:05:10

northmeister
Scratcher
Registered: 2011-07-12
Posts: 1000+

Re: Game Optimization?

Which OS are you using?


http://i48.tinypic.com/5a25g5.png

Offline

 

#16 2012-06-05 19:22:13

Joshlolx
New Scratcher
Registered: 2012-05-17
Posts: 19

Re: Game Optimization?

northmeister wrote:

Which OS are you using?

Windows 7 Enterprise x86 and Ubuntu Precise Pangolin 12.04. Mostly Windows though.

Offline

 

#17 2012-06-06 19:14:36

Joshlolx
New Scratcher
Registered: 2012-05-17
Posts: 19

Re: Game Optimization?

bump

Offline

 

Board footer