Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Can someone help me with programming? Cou
- Rychus
- New to Scratch
7 posts
Can someone help me with programming? Cou
Could anyone out there in the Scratch Community help me with learning how to program with scratch?
Thanks in advance
~Rychus
Thanks in advance
~Rychus
- ErnieParke
- Scratcher
1000+ posts
Can someone help me with programming? Cou
Yes, I can help for sure. What are you thinking of making?
By the way, welcome Rychus to Scratch! I hope you'll make lots of good projects here. Also, if you ever need a bit of help, feel free to post on my profile page, or visit The Scratch Wiki. :)
Welcomes,
ErnieParke
By the way, welcome Rychus to Scratch! I hope you'll make lots of good projects here. Also, if you ever need a bit of help, feel free to post on my profile page, or visit The Scratch Wiki. :)
Welcomes,
ErnieParke
- Rychus
- New to Scratch
7 posts
Can someone help me with programming? Cou
Well, I have already started a game. Its a turret defense game where bugs attack you and try to destroy your base. I've gotten the basis for the game done, but I need to learn how to add the base health, upgrades, and more powerful bugs that attack.
- giacomo78
- Scratcher
51 posts
Can someone help me with programming? Cou
My recommendation is to use variables. You can always click the “?” while making a project to find out how to use blocks. If you need help, ask me on my profile. Well, I have already started a game. Its a turret defense game where bugs attack you and try to destroy your base. I've gotten the basis for the game done, but I need to learn how to add the base health, upgrades, and more powerful bugs that attack.
Hello. PLEASE check out my projects! They're not all too bad…
- ErnieParke
- Scratcher
1000+ posts
Can someone help me with programming? Cou
So you're making a tower defense game? That sounds like a really project. Well, I have already started a game. Its a turret defense game where bugs attack you and try to destroy your base. I've gotten the basis for the game done, but I need to learn how to add the base health, upgrades, and more powerful bugs that attack.
Anyway, for base health, all you need to do is what @giacomo78 recommended. You'll need a variable called (Base Health) (you can call it whatever you want). Then at the beginning of each level, you'll set it to how many lives you have, and whenever a bug reachers your base, all you need to do is remove 1 from (Base Health).
As for more powerful bugs, you can just copy one of the bugs that you already have. In the new bug, though, you can make it go to your base faster, you can increase its health, or you can increase the number of lives it removes if it touches your base. You can basically do whatever you want.
And finally about upgrades, I could post the code here, but I feel like it'd be better if I put it into a project. Could you share a project with your tower sprite(s)? That way I can show how to add the code to your sprite.
Helping,
ErnieParke
- SuperSmashScratch
- Scratcher
1000+ posts
Can someone help me with programming? Cou
This is a long post. Could anyone out there in the Scratch Community help me with learning how to program with scratch?
Thanks in advance
~Rychus
1. The Scripts
You drag scripts, or blocks, from a backpack or the side, and put them in the large space to the right, like this:
when green flag clicked2.How To Start Projects
forever
play sound [meow v]
turn right (25) degrees
end
Usually, you start projects by pressing the green flag, but sometimes it's by pressing space.
3. The Types of Scripts
There are 10 types of scripts.
Motion: When to make sprites move, etc.
Control: When to start a script, and when to end a project/script.
Looks: Changes the way the sprite looks, or can be used for the sprite to say something.
Events: Has things that have to do with starting a project.
Sound: Edits or makes sounds play.
Sensing: Knowing when a certain button is pressed, etc.
Pen: Makes stamps of sprites or creates a pen.
Operators: Scripts that function with other scripts.
Variables: Scripts that change with number.
More Blocks: Make your own block (but you have to say what script it would be!)
4. Sharing Your Projects
When you are finished with your project, press the Share button and it will be on Scratch for everyone to see.
Hope I helped.
Bush hid the sig
- Rychus
- New to Scratch
7 posts
Can someone help me with programming? Cou
@talkingtoilet8 The link for my game is http://scratch.mit.edu/projects/19249054/
@giacomo78 Thanks
@ErnieParke Yeah I tried doing that… and for some reason this doesn't work.
@SuperSmashScratch Thanks for the help
@giacomo78 Thanks
@ErnieParke Yeah I tried doing that… and for some reason this doesn't work.
when green flag clickedIm not sure what I am doing wrong. I hope that comes out as I wanted it
if <touching [Base v]?> then
change [Base Health v] by (-1)
end
@SuperSmashScratch Thanks for the help
- scubajerry
- Scratcher
1000+ posts
Can someone help me with programming? Cou
You have very different code for each of your bugs. Only the first once checks for touching the base. For all of them, the original sprite attacks and creates a clone. The original sprite is now done. The clone attacks and does't create any clones. Now there are no more bugs.
You could do all of this with one bug sprite that makes as many clones as you want. You would want to start them at
You could do all of this with one bug sprite that makes as many clones as you want. You would want to start them at
go to x: (pick random (-230) to (230)) y: (117)
- SuperSmashScratch
- Scratcher
1000+ posts
Can someone help me with programming? Cou
http://scratch.mit.edu/projects/19249054/You are Welcome @talkingtoilet8 The link for my game is
@giacomo78 Thanks
@ErnieParke Yeah I tried doing that… and for some reason this doesn't work.when green flag clickedIm not sure what I am doing wrong. I hope that comes out as I wanted it
if <touching [Base v]?> then
change [Base Health v] by (-1)
end
@SuperSmashScratch Thanks for the help
Bush hid the sig
- Discussion Forums
- » Help with Scripts
- » Can someone help me with programming? Cou