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

#1 2012-04-26 17:00:20

Yukazo
New Scratcher
Registered: 2012-04-13
Posts: 16

Help with shots

For my game:http://scratch.mit.edu/projects/Yukazo/2497908 I am going to make a second costume for my target and its going to be a simple enemy, I was wondering how i could get it to shoot a shot that damaged my main ship player, I already have a variable all ready and set but how do i make a enemy ai that shots stuff at the player?

Offline

 

#2 2012-04-26 17:25:51

ftf841
Scratcher
Registered: 2012-02-19
Posts: 1000+

Re: Help with shots

for the ammunition

when gf clicked
forever
point towards [sprite v]
move [10] steps

Last edited by ftf841 (2012-04-26 17:26:08)


http://mag.racked.eu/cimage/i9002/Achievement++get%21/Hi+there./mca.png
http://mag.racked.eu/mcimage/i354/Achievement++get%21/CAKE%21%21%21%21%21/mca.png

Offline

 

#3 2012-04-26 20:42:45

Yukazo
New Scratcher
Registered: 2012-04-13
Posts: 16

Re: Help with shots

That would be good but wouldn't it make it impossible to miss using that formula, i want the player to be able to dodge the shot. Advertises his game: http://scratch.mit.edu/projects/Yukazo/2497908

Offline

 

#4 2012-04-27 10:28:08

sonicfan12p
Scratcher
Registered: 2011-11-16
Posts: 1000+

Re: Help with shots

Either of the two games out so far in my Tanks series could answer your question. Just go to the link in my signature, and then from there to Tanks-2, since I simplified the script there. Download it, and look at the tank shells scripts. That should fix your problem.


Why are the secret organizations getting all the attention?  mad

Offline

 

Board footer