Discuss Scratch

Mint-Kins
Scratcher
76 posts

starting animation on scrolling platformer [resolved]

hello everyone! i need help with my scrolling platformer game. well i have done all the codes to make a great scrolling platformer, but i wanna add one thing - starting animation. i took the codes from @griffpatch and in his scrolling platformer tutorial he showed a preview of the scrolling platformer and the starting animation was great but when i finished the entire series of the tutorial, there was no code regarding the animation
here my project: https://turbowarp.org/575917298 (still wip)

here's the starting animation im talking about - just watch the first part of the video: https://youtu.be/sebnyhBsXug

thank you!

Last edited by Mint-Kins (Sept. 29, 2021 22:51:15)


“Sayu, Shuumatsuban, at your disposal! Whew, but if you don't need me right now, I'm gonna grab some sleep. I need the extra room to grow into.”
Infinity-Studios5674
Scratcher
100+ posts

starting animation on scrolling platformer [resolved]

So you forgot to remove these two blocks



..╭━━━━━━╮
╭┃ ╭━━━━╮
┃┃ ╰━━━━╯
┃┃

amongus
Mint-Kins
Scratcher
76 posts

starting animation on scrolling platformer [resolved]

thanks! it helped but i want the platformer animation to happen before the player appears. can anyone help me how, just like in the video? thanks!

Last edited by Mint-Kins (Sept. 29, 2021 14:34:31)


“Sayu, Shuumatsuban, at your disposal! Whew, but if you don't need me right now, I'm gonna grab some sleep. I need the extra room to grow into.”
Mint-Kins
Scratcher
76 posts

starting animation on scrolling platformer [resolved]

can anyone send me the codes for that?

“Sayu, Shuumatsuban, at your disposal! Whew, but if you don't need me right now, I'm gonna grab some sleep. I need the extra room to grow into.”
Just_Iakov
Scratcher
100+ posts

starting animation on scrolling platformer [resolved]

Mint-Kins wrote:

can anyone send me the codes for that?

I am not very familiar with the tutorial code that you are using, or its layout, but there is a solution.

Replacing the game on custom block with a new broadcast event. We'll call it Game On.

Once we receive the game on, we'll reset the cube's position several times before starting the start animation effect. This would pretty much act like a timer. We cannot use wait blocks as they'll tend to bug everything out.

Again, I am not familiar with griffpatch's script, so I am not too sure what side effects it might cause to the game, but overall this should fix the animation bug that you are facing.



There might be a better solution for this, but for now, I don't see it.

I hope this helps.

Last edited by Just_Iakov (Sept. 29, 2021 15:42:40)

Mint-Kins
Scratcher
76 posts

starting animation on scrolling platformer [resolved]

wow! tysm! although it goes a little laggy when you go back to starting point, it still works! ty!

edit: i figured out how to make the animation smooth after you lose by moving position block right below the repeat 30 loop!

Last edited by Mint-Kins (Sept. 30, 2021 03:53:09)


“Sayu, Shuumatsuban, at your disposal! Whew, but if you don't need me right now, I'm gonna grab some sleep. I need the extra room to grow into.”

Powered by DjangoBB