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

#1 2008-12-06 19:57:35

yoyoma
Scratcher
Registered: 2008-11-28
Posts: 21

failed again.......

.......i tried to create a sensor sprite that spirals around my original sprite, if my sensor sprite touches the enemy it will set the helper variable to one then using the inerse cosine of their x/y position minus mines i can aim at the sensor and hit the enemy, but this has failed miserably, because for some reason the sensor sprite is constantly moving therefore my bullet is constantly following its direction, and another problem is that the sensor sprite dosn't always touches the enemy....... another project failed!!! any help?

Offline

 

#2 2008-12-07 07:13:51

bhz
Scratcher
Registered: 2008-07-06
Posts: 100+

Re: failed again.......

I wonder why you were not able to find this out yourself.
In bullet, I'm assuming you used http://img166.imageshack.us/img166/3854/31113803si4.gif to decide where to fire the bullet. Well, in that case, drag the http://img184.imageshack.us/img184/8862/83489395kx7.gif out of the forever loop.

Offline

 

Board footer