Discuss Scratch

starlightsparker
Scratcher
1000+ posts

How to make a sliding transition

I’m working on a project that covers the history of scratch to celebrate the last day of scratch week when it comes, and I need a textbox thing, and for the transition when it switches to the next costume I want it to slide into the next costume like a slideshow thing, but I don’t know how to code that. I also want it to be kind of fast and not too slow
HOCKEY_PUCK35
Scratcher
36 posts

How to make a sliding transition

Maybe try making all of the slides one sprite and set the size so that only when of them can be seen on the stage at a time and then code it like you would code something to walk. i hope that makes sense
123pay
Scratcher
18 posts

How to make a sliding transition

I'm assuming what you mean is the costume has to fade out while the next one fades in?
If so (and this is going to sound really unoptimized) you COULD just make a different sprite for each slide and
\
whenclickedwaituntilkey???pressed?repeat10changeghosteffectby10broadcastactivate slide 2
and do the same with each sprite making them fade in when
whenIreceiveactivate slide (n)repeat10changeghosteffectby-10
having them start at ghost effect 100.
again, it's very unoptimized in terms of sprite amounts, but it's the only thing I could think of.

Last edited by 123pay (May 3, 2024 00:18:27)

BigNate469
Scratcher
1000+ posts

How to make a sliding transition

123pay wrote:

I'm assuming what you mean is the costume has to fade out while the next one fades in?
If so (and this is going to sound really unoptimized) you COULD just make a different sprite for each slide and
\
whenclickedwaituntilkey???pressed?repeat10changeghosteffectby10broadcastactivate slide 2
and do the same with each sprite making them fade in when
whenIreceiveactivate slide (n)repeat10changeghosteffectby-10
having them start at ghost effect 100.
again, it's very unoptimized in terms of sprite amounts, but it's the only thing I could think of.
That's "change [ghost v] effect by ()“, by the way.
You could use clones and a variable set to ”this sprite only" to have them tell the difference between each other. Or, you could just switch backdrops and have a sprite with costumes identical to the backdrop, and have the sprite do the transitions effects.

Last edited by BigNate469 (May 3, 2024 00:22:38)

Powered by DjangoBB