This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-07-11 14:11:57

turkey3
Scratcher
Registered: 2011-12-04
Posts: 500+

Camera Blocks- Never Before Suggested

I was looking at Stencyl and found out that there are blocks having to do with the camera. The camera isn't a camera that you take pictures with. The camera is the position of the stage that is being shown. So if I set the camera to x: 450 y: 0, The screen would se3t that coordinate to the center of the stage  so you would be viewing a different area. I will show more examples after I show what blocks the camera could be used for

set camera position to x () y ()
set camera position to [sprite 1 v]
change camera's [x v] position by ()
Set camera zoom to ()
Change camera zoom by ()
if <(camera x) = [3]>
move (10) steps
end
if <(camera y) = [345]>
move (4) steps
end
if <[sprite 1 v] is in view of camera>
move (6) steps
Now, for further information, with these blocks you can do scrolling without making each land formation move. Instead, only the sprite on the land formations would be moving, and the camera could follow that sprite. Here is an example:
when gf clicked
forever
set camera position to [sprite 1 v]
What this would do is no matter where the sprite is- even if it's x position is 2000, it will be at the very center of the screen.

These blocks would be extremely helpful to Scratch. They would make scrolling with less lag and less scripting.

supporters:

Last edited by turkey3 (2012-07-11 15:01:06)

Offline

 

#2 2012-07-11 14:31:07

Firedrake969
Scratcher
Registered: 2011-11-24
Posts: 1000+

Re: Camera Blocks- Never Before Suggested

Not really...  There are projects where you can zoom in...


Click the sign.
https://s3.amazonaws.com/eterna/eterna2/logo2.png

Offline

 

#3 2012-07-11 14:53:39

Wes64
Scratcher
Registered: 2011-08-19
Posts: 1000+

Re: Camera Blocks- Never Before Suggested

You can just program this. This project I made pretty much has a camera function like you described.

Last edited by Wes64 (2012-07-11 14:53:48)


Experienced 2.0 Tester: Ask me questions!
Using Firefox 13.0, Flash plugin version 11.4.402.287, and Windows XP Professional.

Offline

 

#4 2012-07-11 16:32:15

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Re: Camera Blocks- Never Before Suggested

I think there are some camera functions in Panther.


http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

Board footer