Discuss Scratch

oogabooga_gaming
Scratcher
23 posts

How do you make a scrolling backround that follows the player?

I need to know how to make a scrolling backround follows the player for a top down shooter
when green flag clicked
forever
if <[answered] = [yes]> then
say [Thank You!]
end
end

Last edited by oogabooga_gaming (Nov. 25, 2021 01:11:03)

NMario84
Scratcher
1000+ posts

How do you make a scrolling backround that follows the player?

What do you mean by “follows the player”?
If you're moving the player forward, you need to move the background assets the other direction the player is moving, then move the player back along with the background.
NashwanYT
Scratcher
100+ posts

How do you make a scrolling backround that follows the player?

NMario84 wrote:

What do you mean by “follows the player”?
If you're moving the player forward, you need to move the background assets the other direction the player is moving, then move the player back along with the background.
SHe means when the players moves the backgorund moves
deck26
Scratcher
1000+ posts

How do you make a scrolling backround that follows the player?

The wiki includes pages on scrolling and I have some basic introductory projects but you need to clarify what is required. In most scrollers the player doesn't actually move (or, for example moves up and down but horizontal movement is the background moving rather than the player). So does your player actually move or only the background?
alphawolf77777
Scratcher
32 posts

How do you make a scrolling backround that follows the player?

so basically when you press the arrow key it moves the background in the other direction
put this script in the background
when [right arrow v] key pressed
move (-10) steps

I'm Making an Among Us animation series.
i need people to sign up, so click here if you are interested.

i would say more but the evil kumquat army is advancing so i gotta arm the kumquat defense turrets so they won't eat my siggy!
(._.) <------------ this is dumbquat! he runs the kumquat defense system for when they try to eat my siggy.

ANYWAYS, GOODBYE
bcs320jn
Scratcher
100+ posts

How do you make a scrolling backround that follows the player?

Got a script for a scrolling background here: https://scratch.mit.edu/projects/607661365/

Powered by DjangoBB