Pages: 1
Topic closed
Ooh, that's complicated. What do you mean? Any specific part you want to know?
Offline
Muki wrote:
It's very simple, I just want to be able to throw a rock, to make it hit another object and give an effect of damage onto it.
Visit My website Scratch Tutors!
And request it!
Offline
Llennoccm7 wrote:
Muki wrote:
It's very simple, I just want to be able to throw a rock, to make it hit another object and give an effect of damage onto it.
Visit My website Scratch Tutors!
And request it!
You're advertising, or spamming and that is not okay. Just advertise it in show and tell. Not to be mean or anything...
Offline
Just use this:
When I recieve [RockThrow]
if <touching [rock]
switch to costume [damage]
end of if
You can put repeat until (variable), but that would be more complicated.
Offline
For the rock,
When clicked
glide (seconds) sec. to object x object y
there you go. Hope that helped!
Offline
Here's the script for the person who gets attacked, you'll have to find out the other scripts yourself. It's pretty simple:
<when green flag clicked>
<forever>
<if><touching[ rock
<change{ score }by( 1
<end>
<when green flag clicked>
<set{ score }to( 0
Offline
Well, if you mean Like a player throws a rock and it hits someone...
Heres the script im using for a bullet, straight out of my up and coming project.
I'll get the script for my enemy, and it shouldn't be too hard to adapt it.
<forever if><mouse down?>
<if><( Ammo <>> 0 )>
<go to[ player
<change{ Ammo }by( -1
<show>
<point towards( Mouse
<repeat until><touching[ Baddie
<move( 10 )steps>
<end>
<hide>
Of course, you can leave out the ammo bits if you have unlimited ammo, and i've taken out some of the scripts i have used such as sounds, different costumes (different weapons) and un needed things like that.
I'm guessing Enemy script would be a bit like
Forever
If touching Bullet
Change my health by damage
Thats just a guess what it'd be, but you could change damage for just a number, which saves you making a new variable, but it also means that you can't change the amount of damage you do.
And my health would be a variable just for the bad guy.
Offline
Offline
Topic closed
Pages: 1