Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How to make a grid zooming background
- vikkcd
-
Scratcher
500+ posts
How to make a grid zooming background
I am working on a 2D application that has a grid as part of it's scrolling background. Imagine Blender but a 2D view.
the points change in position and the squares seem to get bigger. Also there is a focus and the squares get bigger around that focus point. You can change the focus point's position. Sort of like a Cam X and Y. Also there is further subdivisions as you scroll in. I'm planning to have well over 300 squares so clones won't work. I'm thinking about using the pen sprite or some other clever way to fulfil the task. Thanks!
the points change in position and the squares seem to get bigger. Also there is a focus and the squares get bigger around that focus point. You can change the focus point's position. Sort of like a Cam X and Y. Also there is further subdivisions as you scroll in. I'm planning to have well over 300 squares so clones won't work. I'm thinking about using the pen sprite or some other clever way to fulfil the task. Thanks!
Last edited by vikkcd (Aug. 24, 2021 14:48:56)
- vikkcd
-
Scratcher
500+ posts
How to make a grid zooming background
Thanks so much for the solution. It works very well.
Last edited by vikkcd (Aug. 24, 2021 14:48:09)
- vikkcd
-
Scratcher
500+ posts
How to make a grid zooming background
Thanks scratch team for opening this thread!
I have this gridIs there any way that the Grid can scroll in they x y direction infinitely?
https://scratch.mit.edu/projects/372904166/
You see if it helps
- Oumuamua
-
Scratcher
1000+ posts
How to make a grid zooming background
Infinite? I don't think you need such a thing…
Have you tested how much far beyond can go in any direction?
Have you tested how much far beyond can go in any direction?
- vikkcd
-
Scratcher
500+ posts
How to make a grid zooming background
Infinite? I don't think you need such a thing…I do And it can go only a little bit in each direction. About 50 pixels at most. what I'm aiming for is sort of like Griffpatch's scrolling background at the end of ep 1
Have you tested how much far beyond can go in any direction?
Last edited by vikkcd (Aug. 24, 2021 19:29:39)
- Oumuamua
-
Scratcher
1000+ posts
How to make a grid zooming background
Well, the grid actually don't need to go too far but simulate that it does.
To do it we only need to create a grid a bit bigger than the player screen and reset to 0 the origin coordinates acordingly to cell size.
https://scratch.mit.edu/projects/563425086/
To do it we only need to create a grid a bit bigger than the player screen and reset to 0 the origin coordinates acordingly to cell size.
https://scratch.mit.edu/projects/563425086/
- vikkcd
-
Scratcher
500+ posts
How to make a grid zooming background
Well, the grid actually don't need to go too far but simulate that it does.Brilliant. Thanks so much. You don't know how long I have been banging my head against a wall for the solution
To do it we only need to create a grid a bit bigger than the player screen and reset to 0 the origin coordinates acordingly to cell size.
https://scratch.mit.edu/projects/563425086/
- Discussion Forums
- » Help with Scripts
-
» How to make a grid zooming background