Ask me anything, and i will answer. Ever have a question, just ask.
Offline
You cant say your a Pro Scratcher because you dont become a professional unless you get paid to do it! But other than that i like how you are offering to help ppl! Have A Great Holiday With Your Family
Offline
oh okay. im a good scratcher then. a very good one at that! happy holidays to you too!
Offline
Thank You! Sorry If I sounded rude i did not mean it like that! I always said i was a pro at stuff and my dad said well ur only a pro if u get paid to do it! lol But yes u are an amazing scratcher
Offline
lol but doing my halo one is so hard! its like impossible because it has way too much numbers and i always get mixed up!
Offline
yeah because when i broadcast im reciveing im like, "oh shoot! whitch on is it!" since i have so many broadcasts!
Offline
Giving broadcasts and variables meaningful names (like "start scene 3" or "hide enemy2") helps a lot in subsequent debugging. I think it is a major flaw of the Scratch user interface that you can't easily change the names of variables or messages, since further development on a project often changes exactly what a message does.
Offline
yeah but i did "covenant down" and "covenant is down" because their were two different covenant (aliens in halo) and i wads like
..... 10 minutes later " OOHHHHHHHH! its covenant one!
Offline
OK ..... how do you broadcast & receive values within a topic ?
Say sprite_1 sends "move_x", value 50 ?
Later (from same sprite) a different event "turn_left" 30 degrees ?
Offline
The only convenient way to send values between sprites that I can think of is by using good old global variables. So assign the value or 50 to a variable called move_x then broadcast to a sprite that has a script that Moves move_x steps.
Offline
With v1.2.1 you can now look at the variables (including previously hidden state variables, like costume#) of other sprites. This opens up a new mechanism for passing parameters: setting your own variable, then sending a message so that other sprites will look at your variables. Sometimes this is easier than using global variables, as you don't need to make copies of values, but it still is not as clean as passing parameters explicitly. That will probably come when the Scratch Team figures out how to do "make-your-own-block".
Offline
So instead of passing arguments, we are signaling "come and fetch 'em". Kind of homey! Still awkward.
Offline
just so you know guys when you have a lot of stuf on the program your making if you have four costumes, and have the sprite start at costume one and do <repeat( <next costume>
and say the diamond sensing thing where it says repete it <( <=> )> costume # = 4 it will still go over for and ignore what you put and restart.
Offline
oh yeah and the post that got "moderated?" was soppused to have varibles and an equel.
Offline
and since my other post didnt make sense here || REPEATE UNTIL (costume # = 4)||
|| { next costume) ||
||_______________||
well it will ignore the repeat until (costume =4). It will just repeat forever.
Last edited by Heybrian (2007-12-26 19:45:08)
Offline
Heybrian,
Sorry about deleting your other post. There are a lot of posts each day that are just random collections of blocks (probably from kids playing with the buttons on the webpage), and if a message seems completely incoherent, I delete it.
It helps when using the blocks to remember remember to say [ blocks ] and [ /blocks ] around the code and to use return (or enter) keys between lines.
repeat until costume# = 4
next costume
should work just fine, as long as you have at least 4 costumes. (I just tried it and it worked fine.) The "costume" value will always be an integer from 1 to the number of costumes.
Offline
kevin_karplus wrote:
Heybrian,
Sorry about deleting your other post. There are a lot of posts each day that are just random collections of blocks (probably from kids playing with the buttons on the webpage), and if a message seems completely incoherent, I delete it.
It helps when using the blocks to remember remember to say [ blocks ] and [ /blocks ] around the code and to use return (or enter) keys between lines.
repeat until costume# = 4
next costume
should work just fine, as long as you have at least 4 costumes. (I just tried it and it worked fine.) The "costume" value will always be an integer from 1 to the number of costumes.
yeah the blocks dont fit to well. but this is what happend.i have this army alien dude. he has 4 costumes. i say when mouse pointer cliked, if touching sprite 4 (the alien) i say
Repeat until Costume # =4 <(in spiky number one like this <( <=> )>
next costume
and it just repeats and goes back to one agian and again.
ITS REALLY DRIVING ME CRAZY BECAUSE I CANT FINISH THE GAME WITHOUT IT!
Last edited by Heybrian (2007-12-27 15:45:53)
Offline
That should work , but it doesn't sound like it would do much different from
switch to costume 4
(unless you also have a wait in the repeat loop).
Perhaps you need to display the costume# and see what it is.
Perhaps you accidentally deleted a costume and there are only 3 now?
If you can't get it working, post it on the web site and ask others to look at it—you may be omitting the description of something essential.
Offline
well, i just tryed it agian and it worked but not if you have a bunch of other things and scripts. where do i post it?
Offline
How do you get a longer background.
Offline