Discuss Scratch

TCETV
Scratcher
29 posts

How do I make the backdrop follow the player?

Title says it all. 2

Last edited by TCETV (June 14, 2022 11:59:39)

Creator-H
Scratcher
100+ posts

How do I make the backdrop follow the player?

Either make a bunch (Like hundreds) of different backdrops, but I would recommend using a sprite for the backdrop that came change X and Y.
Ninja_snake15
Scratcher
59 posts

How do I make the backdrop follow the player?

You aren't able to move backdrops, but you can create a huge sprite and make it scroll based on where the player is on screen. This guy on youtube does a great job of explaining how it works: youtu.be/mIAzYvOns04

Hope it helps!

Last edited by Ninja_snake15 (June 14, 2022 14:07:14)

The-Molten-Freddy
Scratcher
500+ posts

How do I make the backdrop follow the player?

TCETV wrote:

Title says it all. 2
I don't think that's possible. You'd need multiple sprites that act as a backdrop , but aren't. I wondered how FNaF games could move with the mouse and that's it
Codingcomputers8000
Scratcher
100+ posts

How do I make the backdrop follow the player?

That’s impossible. Because backdrops are not sprites, they can’t move. However you can just use a sprite and these codes
whenclickedforevergotoPlayer or whatever your player sprite is named

Last edited by Codingcomputers8000 (June 17, 2022 05:34:11)

lion334
Scratcher
100+ posts

How do I make the backdrop follow the player?

Codingcomputers8000 wrote:

That’s impossible. Because backdrops are not sprites, they can’t move. However you can just use a sprite and these codes
whenclickedforevergotoPlayer or whatever your player sprite is named
Doesn't work…

I recommend doing this:
1) Create a new Sprite
2) Make a Costume with small Sot in the Middle
3) Make a Costume with the actual map
4) Code this:
whenclickedswitchcostumetoDotsetsizeto1000%switchcostumetoActualMapforeverifkeywpressed?thenchangeyby-2ifkeyspressed?thenchangeyby2ifkeyapressed?thenchangexby2ifkeydpressed?thenchangexby-2

That way you have a giant map underneath your feet. For my Project “Red Dead Redemption 2” (Linked in siggy), I used Tiles that just hover under the Character, but that's more complicated.
PAPAYAPAPAYA12
Scratcher
1 post

How do I make the backdrop follow the player?

great

Powered by DjangoBB