Just curious as to how i would get a missile to seek an abject in scratch as i need it for a project
Offline
Would this be helpful? http://wiki.scratch.mit.edu/wiki/Making … _the_Mouse
Just change it from the mouse to a sprite.
Offline
Oh you can always just have the missile sprite have "Point towards (x of) (y of)" of whatever object you want the missile to be guided towards, and then have it move forward spaces. For a missile graphic, you should draw it like this:
_____________________
| || \
|__________________||_/
Since the direction 90 is the default. That way, your missile will be actually aiming towards the stuff instead of flying sideways
Offline
zammer990 wrote:
A more complex way would have an array of positions to go to that way it would follow the path of the sprite, rather than just point to where it is on the screen
I think that's a little too complicated, especially if someone just wants to make a small game for a class or something in 15-30 minutes
Offline
Andres-Vander wrote:
zammer990 wrote:
A more complex way would have an array of positions to go to that way it would follow the path of the sprite, rather than just point to where it is on the screen
I think that's a little too complicated, especially if someone just wants to make a small game for a class or something in 15-30 minutes
Yea I know, I was just suggesting another way. After posting that I started making one and it's almost finished
Offline
[Easiest follow script please reply if this is not what you are looking for] when gf clicked repeat (100) point towards [object v] move (variable) steps end wait (1) secs
Last edited by KrIsMa (2012-06-06 11:53:19)
Offline
its ok ive got it now
Offline