Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How to Zoom in and out the character along with the background?
- ProfessionalWolf
-
Scratcher
15 posts
How to Zoom in and out the character along with the background?
If you don't understand, here's everything I can say.
Zoom in and out the character along with the background, but the sprites remain in the same place, but in that enlarged dimension - How? :/
Zoom in and out the character along with the background, but the sprites remain in the same place, but in that enlarged dimension - How? :/
- TheForceStudio
-
Scratcher
100+ posts
How to Zoom in and out the character along with the background?
The background size cannot be changed, since it has a static resolution of 480 by 360
But you can make the background a sprite, and just bring it to the background! Then you create the SIZE variable, and it will be responsible for the size of several sprites, namely the “background” and sprite
But you can make the background a sprite, and just bring it to the background! Then you create the SIZE variable, and it will be responsible for the size of several sprites, namely the “background” and sprite
forever
set size to (SIZE :: variables) %
end
Last edited by TheForceStudio (Feb. 14, 2020 21:38:21)
- ProfessionalWolf
-
Scratcher
15 posts
How to Zoom in and out the character along with the background?
The background size cannot be changed, since it has a static resolution of 480 by 360That's not what i mean… i know that but i want thing like for example background has a rock on the lake, and a cat for example stays on it, then background zooms in for lets say 150% and that cat still stay on the rock and it's size is 150% too. HOW?
But you can make the background a sprite, and just bring it to the background! Then you create the SIZE variable, and it will be responsible for the size of several sprites, namely the “background” and spriteforever
set size to (SIZE :: variables) %
end
Last edited by ProfessionalWolf (Feb. 14, 2020 21:45:02)
- TheForceStudio
-
Scratcher
100+ posts
How to Zoom in and out the character along with the background?
I don’t understand what the problem is simply to increase the sprite, because the cat does not change its size anyway. If you're talking about position X then useThe background size cannot be changed, since it has a static resolution of 480 by 360That's not what i mean… i know that but i want thing like for example background has a rock on the lake, and a cat for example stays on it, then background zooms in for lets say 150% and that cat still stay on the rock and it's size is 150% too. HOW?
But you can make the background a sprite, and just bring it to the background! Then you create the SIZE variable, and it will be responsible for the size of several sprites, namely the “background” and spriteforever
set size to (SIZE :: variables) %
end
go to x: ((bg_size) + (0)) y: ((bg_size) + (0)) //replace 0 with the desired coordinates
And could you please explain the problem as primitive as possible, I don't really understand English
- ProfessionalWolf
-
Scratcher
15 posts
How to Zoom in and out the character along with the background?
Thank you, it works!I don’t understand what the problem is simply to increase the sprite, because the cat does not change its size anyway. If you're talking about position X then useThe background size cannot be changed, since it has a static resolution of 480 by 360That's not what i mean… i know that but i want thing like for example background has a rock on the lake, and a cat for example stays on it, then background zooms in for lets say 150% and that cat still stay on the rock and it's size is 150% too. HOW?
But you can make the background a sprite, and just bring it to the background! Then you create the SIZE variable, and it will be responsible for the size of several sprites, namely the “background” and spriteforever
set size to (SIZE :: variables) %
endgo to x: ((bg_size) + (0)) y: ((bg_size) + (0)) //replace 0 with the desired coordinates
And could you please explain the problem as primitive as possible, I don't really understand English

- TheForceStudio
-
Scratcher
100+ posts
How to Zoom in and out the character along with the background?
Thank you, it works!* breathed a sigh of relief *
- Discussion Forums
- » Help with Scripts
-
» How to Zoom in and out the character along with the background?