the block is (drum roll) [turn towards{*sprite*}] and another [turn towards X: (**) Y: (**)] I really need this for AI's and stuff, also things like commandable vehicle, otherwise you'll have to replace the -180 to 180 with 0 to 360 in the (direction) and [point in direction (***)] blocks, really need this block MIT!
Last edited by dingdong (2008-08-19 20:29:35)
Offline
I agree. Though, isn't point towards [Sprite_] the same as the turn towards? You can also make a sprite with the X and Y where you want another sprite to point towards, and make it point towards the sprite.
Offline
I think you need to come up with a way to make a sprite turn towards another sprite. If scratch does all the hard programming things for you then you won't learn how to program. I know that making a sprite turn towards another sprite is entirely possible in scratch and you just need to find a way to make it work.
Offline
archmage wrote:
I think you need to come up with a way to make a sprite turn towards another sprite. If scratch does all the hard programming things for you then you won't learn how to program. I know that making a sprite turn towards another sprite is entirely possible in scratch and you just need to find a way to make it work.
I have, the problem is that it can't turn in the fastest way possible, like it can't switch from -150 over to 150 turning left, it always goes right
Offline
ummm[blocks]<point towards( ] [/blocks] like arch said...
Last edited by yambanshee (2008-08-20 04:51:09)
Offline
Maybe there's a simpler way, but here's one approach you could use
http://scratch.mit.edu/projects/Paddle2SeeFixIt/245712
Offline
ive done something similar on at least two of my projects. my pingpong game has an AI which points towards the point it thinks you are least likely to return the ball from and in my Quidditch world cup game your opponent turns towards the ball. it is not particularly easy but it should not be too hard once you work it out.
Offline