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

#1 2010-12-06 21:46:23

BaronBassman
New Scratcher
Registered: 2010-10-24
Posts: 8

Question about number of broadcasts/variable use...

Hey folks! I'm fairly new to Scratch, been at it for a couple months and came up with a little game that is pretty fun to play. It works really well for the most part, it just needs a bunch of costume work and sounds (and a start screen, etc., etc...).
Anyhoo... My question is in regards to using variables to 'count' off certain triggers in my game. With regards to my scripts (if you would be kind enough to look/play), some of the broadcast-triggers don't seem to work later in game... Would I be better using a mod type statement to set them off or to set the 'counters' with the sprites they are related to or ???
The shield doesn't come back sometimes when it should, and the big 'boom' ring that wipes out everything doesn't work sometimes. Also for some reason some of the later 'planets' don't show up sometimes... Pretty sure it is 'killpoint' related and there are just too many broadcasts on the stage (or did I miss something?).
Thanks for playing and comments!
Bassman

Offline

 

#2 2010-12-06 21:54:08

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Question about number of broadcasts/variable use...

So, I'm not entirely understanding how you're activating certain things. Are you using "trigger variables" or sorts, which tell another script to start? If so, there may be a conflict in the scripts that causes problems later on. Try enabling the variable displays to check that they are being set correctly.


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#3 2010-12-06 22:11:10

BaronBassman
New Scratcher
Registered: 2010-10-24
Posts: 8

Re: Question about number of broadcasts/variable use...

Take a look? Sometimes it works great, sometimes it doesn't work quite right... I think the problem is broadcasts from the stage or multiple broadcasts or something...

Offline

 

#4 2010-12-06 22:13:29

bbbeb
Scratcher
Registered: 2009-06-11
Posts: 1000+

Re: Question about number of broadcasts/variable use...

If i were you, I would create test variables/ a test list to test it.

You would make a equal number of test variables as you need, and then have them change to launched/not launched.

There, you can see what's glitching.


Back in my day.... there were no laws that censored the internet... now, there are.... nah.

Offline

 

#5 2010-12-07 09:57:00

BaronBassman
New Scratcher
Registered: 2010-10-24
Posts: 8

Re: Question about number of broadcasts/variable use...

Thanks for the advice and comments! I will show the variables and see what's up. It just drives me nuts because sometimes it works perfect and other times it doesn't. The variable I use as a 'trigger' should be counting by 1 every time so there is no way to miss a number right?!? Can a broadcast talk to too many sprites or can too many sprites broadcast the same thing? It will work in the final version heh heh  wink
(Are there any known issues with a variable only being able to affect one broadcast per script or vice-versa?)

Offline

 

Board footer