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

#1 2010-09-04 16:53:08

trekkie2000
Scratcher
Registered: 2009-02-15
Posts: 100+

Questions? I'll answer them.

Hi, this is Trekkie2000. I was originally going to make this post for Remington04, because he asked me a scripting question, but I think a lot of new scratcher's might benifit from this. Just send me a question, and I'll do my best to answer it. Im not an EXPERT on programming, but I do know a bit about stuff like making guns, using Mesh, and stuff. So just send in your questions!


"If life gives you lemons, sell lemonade for $.25...
...Sell antidote to poison in lemonade for $250" -Me

Offline

 

#2 2010-09-05 01:33:40

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

Re: Questions? I'll answer them.

Belongs in All about Scratch.  big_smile

trekkie2000 wrote:

a lot of newscratchers

Last edited by bbbeb (2010-10-16 21:58:42)


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

Offline

 

#3 2010-09-05 02:43:41

gb10
New Scratcher
Registered: 2010-09-05
Posts: 3

Re: Questions? I'll answer them.

Hey I was wondering if you knew how to make a countdown timer from 99999 to 00000?
Help would be much appreciated!

Offline

 

#4 2010-09-05 06:19:43

Daffy22
Scratcher
Registered: 2008-12-15
Posts: 500+

Re: Questions? I'll answer them.

gb10 wrote:

Hey I was wondering if you knew how to make a countdown timer from 99999 to 00000?
Help would be much appreciated!

This should help:
http://img832.imageshack.us/img832/411/counter.gif
The variable 'counter' will count down from 9999 to 0.
If you want the counter to start from something different like 6789 you can just change the [set (counter) to (9999)] to [set (counter) to (6789)]  big_smile
Hope it helps!

Last edited by Daffy22 (2010-09-05 06:21:08)


http://img201.imageshack.us/img201/1784/logosmalle.png
"Spectacular - 5 Star" -  CNET.com Editor.

Offline

 

#5 2010-09-05 23:53:05

gb10
New Scratcher
Registered: 2010-09-05
Posts: 3

Re: Questions? I'll answer them.

hey that helped a lot! thanks! would you also happen to know how to do the same thing if each digit were a sprite, each with 10 costumes representing a digit each? thanks!!

Offline

 

#6 2010-09-06 00:16:53

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

Re: Questions? I'll answer them.

gb10 wrote:

hey that helped a lot! thanks! would you also happen to know how to do the same thing if each digit were a sprite, each with 10 costumes representing a digit each? thanks!!

Add a next costume below the change timer by -1 block,

Last edited by bbbeb (2010-09-06 00:17:17)


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

Offline

 

#7 2010-09-06 00:26:23

gb10
New Scratcher
Registered: 2010-09-05
Posts: 3

Re: Questions? I'll answer them.

but wouldn't that only work if all of the costumes were for 1 sprite? there are 5 sprites, one for each digit's place

Offline

 

#8 2010-09-17 16:10:41

trekkie2000
Scratcher
Registered: 2009-02-15
Posts: 100+

Re: Questions? I'll answer them.

gb10 wrote:

but wouldn't that only work if all of the costumes were for 1 sprite? there are 5 sprites, one for each digit's place

I can't help you on that one.     sad ? I've been trying to figure that one out for a while. Also, you realize it was bbbeb who helped u out before, not me.


"If life gives you lemons, sell lemonade for $.25...
...Sell antidote to poison in lemonade for $250" -Me

Offline

 

#9 2010-09-25 17:52:38

Lord_fawful13
New Scratcher
Registered: 2010-09-22
Posts: 7

Re: Questions? I'll answer them.

Do you know how to make an NPC?
E.G an enemy tank??


When life gives you lemons, make grape juice and leave the rest of the world wondering how the heck you did it.

Offline

 

#10 2010-09-25 20:52:28

trekkie2000
Scratcher
Registered: 2009-02-15
Posts: 100+

Re: Questions? I'll answer them.

One way do do an Npc is the easy way, which is just random movements. A "Smart" way to do it is to program it so that the tank moves based on your movemnts (VERY HARD but possible) However many know more about AI then myself.


"If life gives you lemons, sell lemonade for $.25...
...Sell antidote to poison in lemonade for $250" -Me

Offline

 

#11 2010-10-16 21:30:24

Lord_fawful13
New Scratcher
Registered: 2010-09-22
Posts: 7

Re: Questions? I'll answer them.

Thanks! Heres what i used it for http://scratch.mit.edu/projects/Lord_fawful13/1321456


When life gives you lemons, make grape juice and leave the rest of the world wondering how the heck you did it.

Offline

 

Board footer