Do [blocks]<when green flag clicked>
<forever>
<if><color[ |||||||| ]is over[ ||||||||
<hide>
<end>[/blocks]
Now switch red with the color of your bullet and green with the color of your monster.
Last edited by codyronaldcamp (2010-07-16 09:26:43)
Offline
Thank you for trying to help, codyronaldcamp, but turns out that script only hides the sprite
You may want to take a look at Paddle2See's Trigonometry Cannon or Archmage's Trig-Less Cannon as examples.
Last edited by coolstuff (2010-07-16 12:44:01)
Offline
Well, how do you expect a New Scratch Member to build those scripts?
Offline
codyronaldcamp wrote:
Well, how do you expect a New Scratch Member to build those scripts?
At the moment, your script only hides when it's touching the monster. I find examples to be quite useful - they don't need to actually build the scripts themselves; on the contrary, they can just take them out of the project and put it into their own.
Offline
A very simple way to build your own script. is to use codyronaldcamps idea. or use <touching[ monster ]> and then make the bullet hide, but as well. make the monster respond to being hit. I suggest creating a variable, possibly naming it health, to simbolise that it has health, and then <change{ health }by( -1 )>
Offline
Thanks for trying to help, Flait7, but I believe Twinmold2 was try to design to script which dealt with the projectiles, not changing the health when getting hit.
Another possible thing to look at is my Target Shooter demo from a few years ago.
Offline