Discuss Scratch

684pika
Scratcher
1000+ posts

Could you please help me with a top-down scroller?

Hello! My username is @684pika and I need some help with my Crazy Weirdo Escape project. The problem that I am having is that my scrolling isn't working. What the scrolling is supposed to do is scroll each way. Thank you in advance for helping me on this project.

Last edited by 684pika (May 14, 2020 18:21:56)

Vercte
Scratcher
500+ posts

Could you please help me with a top-down scroller?

Huh, just browsing and here you are.
Anyways, what you would want to do is create a big sprite and use the size hack:
desired event :: events hat
switch costume to [blank v]
set size to (600)%
switch costume to [desired costume v]
For the actual scrolling:
forever
if <key [right arrow v] pressed?> then
change [scroll x v] by (-5)
end
if <key [up arrow v] pressed?> then
change [scroll y v] by (-5)
end
so on with the other versions aka left, up :: grey stack
end
This creates scrolling.
Vercte
Scratcher
500+ posts

Could you please help me with a top-down scroller?

Also, this:
//In the ground sprite...
forever
go to X: (scroll x) Y: (scroll y)
684pika
Scratcher
1000+ posts

Could you please help me with a top-down scroller?

yeah, i was using griffpatch's, but it didn't work.

Powered by DjangoBB