Discuss Scratch

Sketch_50
New Scratcher
3 posts

How to Make a Sprite Chase Another Sprite

How do make a sprite chase another sprite without using the “Point Towards Sprite” block, or at least without the sprite flipping or being upside-down.
coder2045
Scratcher
1000+ posts

How to Make a Sprite Chase Another Sprite

set rotation style [don't rotate v]
This block stops the sprite from visually rotating.
pogrx
Scratcher
100+ posts

How to Make a Sprite Chase Another Sprite

Sketch_50 wrote:

How do make a sprite chase another sprite without using the “Point Towards Sprite” block, or at least without the sprite flipping or being upside-down.
Make a script that detects the chasing sprite's location in relation to the other sprite's location, and then change it. For example if x of chasing sprite > x of chased sprite then change the chasing sprite's x location until it touches the chased sprite.

Powered by DjangoBB