How to: “New” scrolling

So, the old scroll method is broken with the new update.

There is a simple fix, adding a wait milliseconds 0 block in between the variables. If you are wondering “what the monkey is GCC talking about” then here’s a very basic and bad scrolling tutorial.

Present are a bunch of blocks

These are the basics to scrolling. See how I added the wait block. This calculates the distance from last touch x between two frames. Since variables don’t count as frames anymore, this was, obviously, broken.

Ack, my objects aren’t scrolling and I implemented this code! What’d I do wrong?

Make sure you added this code! Else it won’t work :wink:
This is for Y scroll and the other was for x scroll. I apologize for doing that. Make sure that you have the same variables and they are in a repeat forever block.

Hope this helped you if you were confuzzled. This is just to notify people who don’t already know about this change:)

37 Likes

Good job :slight_smile:

13 Likes

Great tutorial! This’ll be super helpful

12 Likes

Ooo I didn’t notice this… thanks for the heads up

8 Likes

Nice tutorial and explaination

10 Likes

Yee I discovered it thought it would help to make a topic so bug reports of this won’t start popping up

7 Likes

Very useful and detailed tutorial! Great job, I’m sure this will help many!

6 Likes

great tutorial! keep it up!

6 Likes

How do you make scrolling sideways? Because there is a game called “The Realm of Randomia” and the scrolling is really convienient and I wanna learn on how to scroll from there or scroll when a player moves, can you give me a tutorial like that? I’m not REALLY good when coding, but I do got potential.

3 Likes

Just do regular scrolling, but with the x position instead of y position
Does this make any sense/answer your question? If not, tell me and I’ll elaborate more

3 Likes

I kinda know how to do scrolling sideways but not a lot…

3 Likes

Okk what do you need help with?

2 Likes

Scroll like when you are in the middle of the screen, center, the screen scrolls. That is what I need for it to work.

3 Likes

Ah, like what you do in realm of randomnia. Just do x and y scroll combined
(This is what you mean right?)

2 Likes

Kinda, but I don’t know how to do both x and y

2 Likes

Ok, so do the values for x and y scroll then for the scrollable object do
Repeat forever
Set position (x position) + x scroll (Y position) + Y scroll
End

Does that help?

2 Likes

I will try it out, but it does help a bit

2 Likes

Bump!

This is very useful

1 Like