Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How to make character follow behind one another?
- kazuhohaneyama
-
New Scratcher
2 posts
How to make character follow behind one another?
How do i made characters follow behind one another without overlapping and without them having to change where they are pointing? (the game isnt from an above pov)
- RingeryGaming
-
Scratcher
53 posts
How to make character follow behind one another?
you could use block this to make the characters not overlap.
to make the characters point in a direction without actually pointing, you could use this block
hope this helps :)
go back (999) layers
to make the characters point in a direction without actually pointing, you could use this block
set rotation style [don't rotate v]
hope this helps :)
- kazuhohaneyama
-
New Scratcher
2 posts
How to make character follow behind one another?
you could use block this to make the characters not overlap.I was thinking more they stand next to each other when they get close instead of just going behind them..go back (999) layers
to make the characters point in a direction without actually pointing, you could use this blockset rotation style [don't rotate v]
hope this helps :)
- legendary34678
-
Scratcher
1000+ posts
How to make character follow behind one another?
The go back 999 layers block will not prevent overlap. What you could do is something like this:
Edit: It seems we're not talking about the same thing. Could you please post the link to your project so we can see it?
set rotation style [don't rotate v]
forever
point towards [sprite v]
move (10) steps
if <touching [sprite v]> then
move (-10) steps
end
end
Edit: It seems we're not talking about the same thing. Could you please post the link to your project so we can see it?
Last edited by legendary34678 (May 15, 2023 15:15:08)
- hello35742
-
Scratcher
2 posts
How to make character follow behind one another?
You'd need to make a complicated list, showing all of the enemy's Y positions in order. I'm trying to do the same thing, so here's a way you can do it:
The “foo” variable would be the enemy's clone number. To assign enemies a specific clone number, try something like:
When I start as a clone
change clone number by amount of enemies
This is just how I would do it. IDK if there's an easier way.
when I start as a clone
forever
if <(y position) >(item ( (foo)) of (list :: list) > then
go to [front v] layer
else
go to [back v] layer
The “foo” variable would be the enemy's clone number. To assign enemies a specific clone number, try something like:
When I start as a clone
change clone number by amount of enemies
This is just how I would do it. IDK if there's an easier way.
Last edited by hello35742 (Dec. 19, 2025 22:34:50)
- g6g6g66g6g
-
Scratcher
67 posts
How to make character follow behind one another?
which pov does the game use?
- hello35742
-
Scratcher
2 posts
How to make character follow behind one another?
Like I said, I'm trying to do the same thing. I can't share a project because I haven't done it yet, this is just a concept.
- cookedasparagus8
-
Scratcher
100+ posts
How to make character follow behind one another?
which pov does the game use?I get that you are trying to help, but the topic creator has definitely moved on. Don’t necropost
- Discussion Forums
- » Help with Scripts
-
» How to make character follow behind one another?