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

#1 2008-12-14 21:06:52

UncleSam
Scratcher
Registered: 2008-12-14
Posts: 3

costume switch issues

I'm managing my GUI on my scratch game, and when I test it there are multiple times where the stage switches to the wrong costume. Plz download my game and see whats wrong. http://scratch.mit.edu/projects/UncleSam/351488

Offline

 

#2 2008-12-14 22:01:08

Digimath
Scratcher
Registered: 2007-07-07
Posts: 100+

Re: costume switch issues

The only thing that caught my eye was your green flag hat script in the stage which switches to the bugatti_veyron_h background after playing the sound 04 Theme of Meta.  Therefore, after it finishes playing that wave file, it will always switch your background.


I've updated my text adventure game.
Colossal Cave 150http://scratch.mit.edu/static/projects/Digimath/3003787_sm.png

Offline

 

#3 2008-12-15 19:38:26

UncleSam
Scratcher
Registered: 2008-12-14
Posts: 3

Re: costume switch issues

okay so ill switch the sound and backround parts of the script and it works fine, thanks. I also need help on one audio overlap issue on the stage select.
Also my randomizer for 1player always sets up both cars when you go to car select, I might need help fixing that, Ill update my profile with the most recent version of my game, so you can look at that if you want to...
btw my randomizer looks like this, but neater
[blocks]<when I receive[ one player
<forever>
<if><( <pick random( 1 )to( 2 <=> 1 )>
<broadcast[ car 1
<end>
<else>
<broadcast[ car 2
<end>[/blocks]

Last edited by UncleSam (2008-12-15 19:41:10)

Offline

 

#4 2008-12-15 22:23:15

Digimath
Scratcher
Registered: 2007-07-07
Posts: 100+

Re: costume switch issues

I don’t think you want your car selection routine in a forever loop.  Eventually both values will get picked.


I've updated my text adventure game.
Colossal Cave 150http://scratch.mit.edu/static/projects/Digimath/3003787_sm.png

Offline

 

#5 2008-12-16 18:46:27

UncleSam
Scratcher
Registered: 2008-12-14
Posts: 3

Re: costume switch issues

right ill do that, and the sound loop is still overlapping even with the top sounds it just delays it

Offline

 

Board footer