I want to make a sprite go to the edge of another sprite, like a real (distance to sprite [sprite1 v]) block. How would this be accomplished?
Offline
[point towards[sprite]]
[go to[sprite]]
repeat until not<touching[sprite]?>]
[move (-1) steps]
end repeat.
if the sprite you want to touch the edge of is a cirle of known width, you can get it to move radius*-1 steps.
Offline
sparks wrote:
[point towards[sprite]]
[go to[sprite]]
repeat until not<touching[sprite]?>]
[move (-1) steps]
end repeat.
if the sprite you want to touch the edge of is a cirle of known width, you can get it to move radius*-1 steps.
That WOULD work, but I need it to move fast... Plus, it uses pen.
Offline
Well, it's basically a triangle shape, with two rectangles
______
|_| |_|
sticking out the back.
Offline
cds56 wrote:
SeptimusHeap wrote:
Well, it's basically a triangle shape, with two rectangles
______
|_| |_|
sticking out the back.a crude rocket?
Sorta. Just a triangle with thrusters.
Offline
sparks wrote:
lol, I guess they do what I do, scan the topics that might interest them by who last commented or created the topic
![]()
I just open every single "blue" thread in a new tab and read them all...
Offline
me too.
Your answer: Simply find out the distance between the Centre(x and y position) and the edge.
Offline