ScratchData LogoScratchData
Back to TheLogFather's profile

Key press block difference

THTheLogFather•Created February 26, 2014
Key press block difference
23
22
1213 views
View on Scratch

Instructions

Quick little project to show and explain the difference between "when key pressed" and "key pressed?" blocks. Right arrow controls Sprite1 (Giga), left arrow controls Sprite2 (Pico). Notice the difference in behaviour - in particular, the way Giga pauses just after each time you press the right arrow key.

Description

Try changing your keyboard settings (in System Prefs, or Control Panels) and see what difference it makes to the way Giga moves. This demonstrates why it's generally better to use the blue sensor blocks for smooth movement, rather than the "when key pressed" hat blocks. (Though "see inside" for a way to use "when key pressed" to get smooth movement.)

Project Details

Project ID18453174
CreatedFebruary 26, 2014
Last ModifiedFebruary 26, 2014
SharedFebruary 26, 2014
Visibilityvisible
CommentsAllowed