This script will follow the sprite.
when gf clicked forever point towards[sprite 1 v] move (3) stepsIf you want the sprite to only move along the x-axis, use this:
when gf clicked forever if<((x position)-([x position v] of [sprite 1 v])) < (4)> change x by (3) else if <((x position)-([x position v] of [sprite 1 v])) > (4)> change x by (-3) end end
Last edited by MoreGamesNow (2012-04-21 09:53:28)
Offline
it's actually pretty easy, I will try to show you the best way I can because I'm bad at doing the block thing...
When Green flag clicked
Forever
glide () seconds to x: x position of sprite ... y: y position of sprite...
() would stand for the number of seconds it will take to get there.
I'm sorry it isn't the best but... there.
Offline
jimmy12384 wrote:
it's actually pretty easy, I will try to show you the best way I can because I'm bad at doing the block thing...
When Green flag clicked
Forever
glide () seconds to x: x position of sprite ... y: y position of sprite...
() would stand for the number of seconds it will take to get there.
I'm sorry it isn't the best but... there.
The problem is that the "glide () seconds to x ) y )" block can't be interrupted, so if the target-sprite moves, the moving sprite will continue moving to where it used to be, until it finally reaches the old location.
Offline
MoreGamesNow wrote:
jimmy12384 wrote:
it's actually pretty easy, I will try to show you the best way I can because I'm bad at doing the block thing...
When Green flag clicked
Forever
glide () seconds to x: x position of sprite ... y: y position of sprite...
() would stand for the number of seconds it will take to get there.
I'm sorry it isn't the best but... there.The problem is that the "glide () seconds to x ) y )" block can't be interrupted, so if the target-sprite moves, the moving sprite will continue moving to where it used to be, until it finally reaches the old location.
I guess your right, then I would have to say to go with the above script and do...( I'll try the blocks...)
when gf clicked forever point towards [user v] move (3) steps end
Offline