Discuss Scratch

Sprinternet
Scratcher
69 posts

How to zoom in and out project ?

Is possible to zoom in and out project that is made?
Example:
http://prntscr.com/ejtx4s (I cannot place images because of this error http://prntscr.com/ejtyil )
How can I zoom in that triangle (if possible)

when <(status::9933cc) = (bored::#9933cc)>::#3399cc
play [Minecraft server]::#2ae6ae
if <(server::9933cc) = (down::#9933cc)> then::#999999
create on Scratch::#BABADC
pacificapilot
Scratcher
100+ posts

How to zoom in and out project ?

The way to do this is a little tricky. It looks like the project you are making is with pen. What you would do, is have a list where all the vertices (corners/points) are in your figure. Then, have a zoom variable that you use to increase the coordinates of the points to make them move. this will create a zooming effect. So something like this:
when gf clicked
forever
set[counter v]to(1)
repeat(length of[Vertices v])
pen down
go to x:((item(counter)of[Vertices v])*(zoom)) y:((item((counter)+(1))of[Vertices v])*(zoom))
pen up
end
end
So what this is doing is using a list called “Vertices.” This list is made up of every X and Y value of the points on the big triangle. They are all in sequence. So the first point's X position would be item 1, the first point's Y position would be item 2, the second point's X position would be item 3, and so on. The script checks each of those points, and moves to them. however, if the variable “zoom” is more than 1, then it will increase the distance that point is away from the center by whatever number “zoom” is. So if a point's coordinates were (50,-50), and “zoom” was set to 2, then the coordinates would then become (100,-100).

You can then put a slider variable (Right click on the variable on the stage and click “slider”) on the screen so you can easily zoom in or out, or you can make keys on the keyboard do it.

Last edited by pacificapilot (March 14, 2017 14:47:29)


====================================================================
====================================================================
Sprinternet
Scratcher
69 posts

How to zoom in and out project ?

I don't understand, so I shared that project.
scratch.mit.edu/projects/149731609/
If you can tell me how and where I make it.
The lap counter variable (top right corner on a screenshot) is called Iter.

when <(status::9933cc) = (bored::#9933cc)>::#3399cc
play [Minecraft server]::#2ae6ae
if <(server::9933cc) = (down::#9933cc)> then::#999999
create on Scratch::#BABADC
footsocktoe
Scratcher
1000+ posts

How to zoom in and out project ?

Sprinternet wrote:

Is possible to zoom in and out project that is made?
Example:
http://prntscr.com/ejtx4s (I cannot place images because of this error http://prntscr.com/ejtyil )
How can I zoom in that triangle (if possible)

No, it's not possible EXCEPT that you can choose between small screen and full screen.


SHOOT THE SPACE MONSTERS! ….. A game everyone can play! Bright colors, bonky sounds!
THE 12 BALLS OF CRAZY AL ……. New scrolling adventure game!

pacificapilot
Scratcher
100+ posts

How to zoom in and out project ?

Sprinternet wrote:

I don't understand, so I shared that project.
scratch.mit.edu/projects/149731609/
If you can tell me how and where I make it.
The lap counter variable (top right corner on a screenshot) is called Iter.
Check my remix on your project for help.

====================================================================
====================================================================
Sprinternet
Scratcher
69 posts

How to zoom in and out project ?

Thanks footsocktoe, You helped so much
pacificapilot I will check.

when <(status::9933cc) = (bored::#9933cc)>::#3399cc
play [Minecraft server]::#2ae6ae
if <(server::9933cc) = (down::#9933cc)> then::#999999
create on Scratch::#BABADC
racer2014
Scratcher
29 posts

How to zoom in and out project ?

Try making a “zoom in” button that when clicked broadcasts a “zoom in” broadcast.
Every sprite will get bigger using the
change size by ()
block.
asivi
Scratcher
1000+ posts

How to zoom in and out project ?

racer2014 wrote:

Try making a “zoom in” button that when clicked broadcasts a “zoom in” broadcast.
Every sprite will get bigger using the
change size by ()
block.
You even haven't seen the related project, please stop spamming the forum posting useless or repeating responses.
gfernandes2026
New to Scratch
1 post

How to zoom in and out project ?

:D hi :P
DinoRFP
Scratcher
10 posts

How to zoom in and out project ?

I created my on way to zoom in. If you want to make it zoom when it switches to a new background, use the “when the backdrop switches to …”,
wait 6 seconds, change size by 200.
viktoryiseveryones
Scratcher
10 posts

How to zoom in and out project ?

maybe by doing
forever

if <<key [ v] pressed?>> then
change size by (1)
change x by (1)
endend

cuz then the sprite wont get in any other sprites way

Last edited by viktoryiseveryones (Nov. 17, 2020 19:06:43)

viktoryiseveryones
Scratcher
10 posts

How to zoom in and out project ?

and then doing
if <key [ v] pressed?> then
change size by (-1)
change x by (-1)
end
to make it zoom out and then a
if <(x position) < (the end of screen)> then
hide
end
GrilledCheeseBurrito
Scratcher
500+ posts

How to zoom in and out project ?

Sprinternet wrote:

Is possible to zoom in and out project that is made?
Example:
http://prntscr.com/ejtx4s (I cannot place images because of this error http://prntscr.com/ejtyil )
How can I zoom in that triangle (if possible)
it is possible. If you decrease the size of all sprites when you zoom out and increase the size of all sprites when you zoom in.
here is an example:
when I receive [zoom out]
change size by (-5)
when I receive [zoom in]
change size by (5)

this is my signature. it comes after anything I post!
highlight this and press control+shift+down to see the rest of my siggy!

PLEASE NOTE
I am thinking of going inactive soon. this WILL happen if my shop is not active that much and after I finish my animation series. to help, PM me here.

PLEASE NOTE TWO
I am resigning from all shops i work at - except the stone shop. if you are an owner of one of the shops I work at, please remove me from the staff list.

See my current status and post distribution here!

Road to 1000 posts:
79.4%
794 posts
last updated 3/12/2021
viktoryiseveryones
Scratcher
10 posts

How to zoom in and out project ?

that wouldn't work.
because then the sprites will just stack on top of each other
but for a one sprite project it will.
you would need to change the x pos to make a zoom in feature
viktoryiseveryones
Scratcher
10 posts

How to zoom in and out project ?

pacificapilot wrote:

The way to do this is a little tricky. It looks like the project you are making is with pen. What you would do, is have a list where all the vertices (corners/points) are in your figure. Then, have a zoom variable that you use to increase the coordinates of the points to make them move. this will create a zooming effect. So something like this:
when gf clicked
forever
set[counter v]to(1)
repeat(length of[Vertices v])
pen down
go to x:((item(counter)of[Vertices v])*(zoom)) y:((item((counter)+(1))of[Vertices v])*(zoom))
pen up
end
end
So what this is doing is using a list called “Vertices.” This list is made up of every X and Y value of the points on the big triangle. They are all in sequence. So the first point's X position would be item 1, the first point's Y position would be item 2, the second point's X position would be item 3, and so on. The script checks each of those points, and moves to them. however, if the variable “zoom” is more than 1, then it will increase the distance that point is away from the center by whatever number “zoom” is. So if a point's coordinates were (50,-50), and “zoom” was set to 2, then the coordinates would then become (100,-100).

You can then put a slider variable (Right click on the variable on the stage and click “slider”) on the screen so you can easily zoom in or out, or you can make keys on the keyboard do it.
cant you just do
change x by (what you want?)
viktoryiseveryones
Scratcher
10 posts

How to zoom in and out project ?

if <(want to play fortnite) = [yes]> then
go to (TV)
end
Legend_Ninja02
New to Scratch
1 post

How to zoom in and out project ?

How do i make sprite zoom out
rachetwiinqs
Scratcher
1 post

How to zoom in and out project ?

how do i zoom in and out on the scratch editor?
Navy147
Scratcher
24 posts

How to zoom in and out project ?

viktoryiseveryones wrote:

if <(want to play fortnite) = [yes]> then
go to (TV)
end

No fortnite (i hate fortnight -_-)
iloveminecraft2001
Scratcher
6 posts

How to zoom in and out project ?

viktoryiseveryones wrote:

if <(want to play fortnite) = [yes]> then
go to (TV)
end



why the tv? you can also play on computer

Powered by DjangoBB

Standard | Mobile