search
user.png
vertical menu

Scratch: Sprite Scrolling (Game Mechanics #1)

Scratch: Sprite Scrolling (Game Mechanics #1) preview
Scratch: Sprite Scrolling (Game Mechanics #1) preview
Scratch: Sprite Scrolling (Game Mechanics #1) preview 2
Scratch: Sprite Scrolling (Game Mechanics #1) preview 3
Scratch: Sprite Scrolling (Game Mechanics #1) preview 4

Look Inside · 10 pages

Cover of Scratch: Sprite Scrolling (Game Mechanics #1), a guide to programming scrolling sprites
Cover of the 10-page Scratch guide
Guide overview lists learning goals, variables, controlling sprite, initial values, and four more topics
Overview and contents of the scrolling guide
Learning goals introduce camera variables, individual sprite positions, and broadcasts from a main game loop
Learning goals before the coding instructions
Variable setup instructions introduce cameraX and cameraY, plus sprite-only myX and myY position variables
First coding step: create position variables
Controlling sprite instructions create an empty sprite and a main game loop using reset and position broadcasts
Set up the controlling sprite and main loop
Initial values instructions show a reset script setting myY and myX to 0 to establish sprite starting positions
Initialize positions for sprites that scroll
Sprite positioning instructions build a script in three parts, subtracting cameraX from myX and cameraY from myY
Build the position script in three parts
Camera movement instructions change cameraX and cameraY by mouse coordinates divided by 100 in the main loop
Add mouse-controlled camera movement
Sprite movement instructions explain changing myX and myY and introduce camera tracking for a sprite named Main
Move sprites and introduce camera tracking
Visibility instructions explain covering screen edges or using position checks to show and hide scrolling sprites
Final step: manage sprites at screen edges
Attributes
File

PDF

Editable
No
Author
Roombop
Rating
Add To Collection
Add to collection Add to collection

About This Product

This guide will show you how to do scrolling for sprites. Scrolling can be a little complicated, but if you read carefully, and understand what is written, then it should be very simple. The same technique is used to make higher level games like 3D and pen platformers. So I thought that scrolling was a good place to start. 

This package is a great resource to have your students follow. These game mechanic guides are great to teach specific techniques and skills that can be used to create a game. They allow the students to expand their knowledge of Scratch. It is recommended that your students have an understanding of Scratch before using this resource.

What's Included

This guide will show you how to do scrolling for sprites.

0 Reviews

Explore related searches