Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » how exactly does pen scrolling work...
- Ajpuff5
-
14 posts
how exactly does pen scrolling work...
does it draw the whole ground but stop at the edge of the screen? help pls!
- deck26
-
1000+ posts
how exactly does pen scrolling work...
The pen draws on the background (the stage) so cannot go beyond the edges of the stage. If a sprite's centre is off stage the pen will effectively be at the nearest point on the edge of the stage.
- Ajpuff5
-
14 posts
how exactly does pen scrolling work...
wait im confused with the last part
- KermitMC
-
100+ posts
how exactly does pen scrolling work...
I've never made a pen game before, but If I were to then I would probably use a list to tell the program what to draw for the playfield. When the position of the “pen” is goes of the screen, just prevent it from drawing that segment and draw the next part. You'd have to use purple blocks to draw the playfield as you can set them to run without screen refresh which would instantly draw the playfield.
Last edited by KermitMC (Dec. 27, 2015 16:40:51)
- fanofcena
-
12 posts
how exactly does pen scrolling work...
@Ajpuff5 try this out https://scratch.mit.edu/projects/92635864/ notice how pen clips on the edges ? You can also try checking out https://scratch.mit.edu/projects/872438/ or other stuff by RHY(tooManyNumbers) for examples of how to use pens ! 

- Discussion Forums
- » Help with Scripts
-
» how exactly does pen scrolling work...