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) stepsNow, 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.
supporters:
Last edited by turkey3 (2012-07-11 15:01:06)
Offline
Not really... There are projects where you can zoom in...
Offline
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)
Offline