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

#1 2008-02-19 21:43:04

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Game freezes

I am making a bowling game and most of the time when you toss the ball in to the pins the entire project freezes up. However the project works fine when played from the scratch program. I cannot find what is causing the problem. Any help would be appreciated.

The buggy project ----> http://scratch.mit.edu/projects/archmage/101881

I just tried another way for the pins to detect collisions with other pins and it still freezes. http://scratch.mit.edu/projects/archmage/103108

Last edited by archmage (2008-02-20 23:06:08)


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#2 2008-02-20 01:08:42

Jens
Scratcher
Registered: 2007-06-04
Posts: 1000+

Re: Game freezes

Many users, including myself, are encountering freezes and other glitches using collision detection in the online version which don't occur in Scratch. I'd definitely like to see these resolved, too.


Jens Mönig

Offline

 

#3 2008-02-20 12:26:21

EdnaC
Scratcher
Registered: 2007-08-28
Posts: 100+

Re: Game freezes

My example:

http://scratch.mit.edu/projects/EdnaC/102490

It seems to lock when there isn't a collision going on.

-MrEd

Offline

 

#4 2008-02-20 23:02:07

EdnaC
Scratcher
Registered: 2007-08-28
Posts: 100+

Re: Game freezes

After several edits, something that I've done is letting the project run!  (It's a bouncing ball with no user input.)  I have noticed that an odd bounce shows up occasionally; I wonder if the Java version has a problem with angles (perhaps a trig function is "blowing up") that doesn't happen in the Scratch environment?

Offline

 

#5 2008-02-23 08:54:59

Lucario621
Community Moderator
Registered: 2007-10-03
Posts: 1000+

Re: Game freezes

On the web it is working perfect for me. Just your computer probably. It works fine.


http://i.imgur.com/WBkM2QQ.png

Offline

 

#6 2008-02-23 11:20:31

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: Game freezes

Lucario621 wrote:

On the web it is working perfect for me. Just your computer probably. It works fine.

I changed it so that the pins don't check for other pins. They just check for the colour red on the other pins. When I tried to make the pins detect the other pins it would freeze.


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#7 2008-02-23 21:55:40

Heybrian
Scratcher
Registered: 2007-12-05
Posts: 100+

Re: Game freezes

Maybe, its because you over-programmed the limit on scratch!


Black Mesa. go here to get a game 10 times better than SN or FW.  http://scratch.mit.edu/galleries/view/10650
Smiley! copy and paste these into your post or signature!  smile   sad    yikes                 big_smile     wink    tongue    hmm    neutral   cool   lol   mad   roll

Offline

 

#8 2008-02-23 22:12:59

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: Game freezes

Heybrian wrote:

Maybe, its because you over-programmed the limit on scratch!

But it worked when I played it on the scratch program. There is probally a bug in the java scratch player.


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#9 2008-02-25 18:01:46

Lucario621
Community Moderator
Registered: 2007-10-03
Posts: 1000+

Re: Game freezes

I still say it's your computer.


http://i.imgur.com/WBkM2QQ.png

Offline

 

#10 2008-02-25 18:58:20

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: Game freezes

I tried it on several computers with the same result. You probably only played the project that uses colour sensing instead of collision testing for all the pins.


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#11 2008-02-26 00:56:40

Mayhem
Scratcher
Registered: 2007-05-26
Posts: 1000+

Re: Game freezes

Not related to this project, but projects which have a "change mosaic by x" block inside an infinite forever loop appear to cause IE to totally lock up.


Web-spinning Spider:  http://scratch.mit.edu/projects/Mayhem/18456
3D Dungeon Adventure:  http://scratch.mit.edu/projects/Mayhem/23570
Starfighter X: http://scratch.mit.edu/projects/Mayhem/21825
Wandering Knight: http://scratch.mit.edu/projects/Mayhem/28484

Offline

 

#12 2008-02-26 15:05:15

Lucario621
Community Moderator
Registered: 2007-10-03
Posts: 1000+

Re: Game freezes

No archmage, I just tried the bowling you have right now. On February 26th, 2008 at 3:07 PM(EST)

Last edited by Lucario621 (2008-02-26 15:05:34)


http://i.imgur.com/WBkM2QQ.png

Offline

 

#13 2008-02-26 16:13:09

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: Game freezes

Lucario621 wrote:

No archmage, I just tried the bowling you have right now. On February 26th, 2008 at 3:07 PM(EST)

The bowling I have on right now is FIXED. I updated it a while ago.

I reuploaded the broken version, try it out. http://scratch.mit.edu/projects/archmage/107609


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#14 2008-02-26 19:48:54

Lucario621
Community Moderator
Registered: 2007-10-03
Posts: 1000+

Re: Game freezes

I don't see the problem with the "broken" (atleast you say) version.


http://i.imgur.com/WBkM2QQ.png

Offline

 

Board footer