i need a script to make a bullet fire and come back to u and go to u whenever it's not fired
Offline
when green flag clicked
forever
if: key <whatever fire button is
point in direction<direction of sprite 1>
repeat until touching edge
move <whatever> steps
else
go to sprite 1
Offline
thank u
http://scratch.mit.edu/forums/viewtopic.php?id=4209#req_message
Offline
In addition to what FPSFelix said, you might want to look into these projects:
Paddle2See's Trigonometry cannon: http://scratch.mit.edu/projects/Paddle2See/77800
And Archmage's Trig-less cannon: http://scratch.mit.edu/projects/archmage/84286
Offline
http://scratch.mit.edu/projects/dingdong/70684 Here's a little project that shows you how to do it.
Offline
See if this helps.
http://scratch.mit.edu/projects/12three/393354
Offline