Discuss Scratch

EeveeMaster--
Scratcher
8 posts

sLIDING BACKDROPs

HEY GUYS!!
EEVEEMASTER HERE

HOW DO I DO SLIDING BACKDROPS? PLEASE TELL ME!








FOLLOW ME PLEASE!!!!
awesome-llama
Scratcher
1000+ posts

sLIDING BACKDROPs

The backdrop can not move, you have to use a sprite instead.
EeveeMaster--
Scratcher
8 posts

sLIDING BACKDROPs

awesome-llama wrote:

Ok , how?
Malicondi
Scratcher
1000+ posts

sLIDING BACKDROPs

EeveeMaster-- wrote:

Ok , how?
Here's a simple script for a scrolling background, but first you'll need a sprite that covers the entire screen as the background, and 2 small dots on the left and right of the background so that it can scroll off screen.
Then, you need a variable, for all sprites so the background can scroll according to the player, or whatever is comrtling the movement, mine will be called “cam x”.
when gf clicked
go to [back v] ::looks
create clone of [myself v]
forever
go to x: ((cam x) mod (480)) y: (0)

when I start as a clone
forever
go to x: (((cam x) mod (480)) - (480)) y: (0)

Last edited by Malicondi (March 3, 2024 15:09:39)

medians
Scratcher
1000+ posts

sLIDING BACKDROPs

EeveeMaster-- wrote:

Ok , how?
You can put a sprite behind everything (layers)

Malicondi wrote:

when gf clicked
go to [back v] ::looks
Hold on, do you mean like this?
when green flag clicked
go back ((1) / (0)) layers
Malicondi
Scratcher
1000+ posts

sLIDING BACKDROPs

medians wrote:

Hold on, do you mean like this?
when green flag clicked
go back ((1) / (0)) layers
in 3.0 (I know you use 2.0 mainly) there's a go to back layer block.

Powered by DjangoBB