Learning Stencyl 3.x Game Development Beginner's Guide
上QQ阅读APP看书,第一时间看更新

Making the screen scroll

Rather than losing our monkey off the side of the screen, we're going to ensure that the screen scrolls automatically as he runs.

Once again, behaviors come to our rescue—in just a few clicks, we will have a scrolling scene for our monkey to enjoy.

Scrolling through a scene in Stencyl is easily managed by using the Camera Follow behavior, and we attach the behavior to the actor that we want to follow—in our game, that's the monkey.