Animation and capturing keystrokes in LiveCode

last edited Jul 09 2017 by Richmond Mathewson | Created by Richmond Mathewson | Other contributors:

A series of LiveCode stacks for teaching pupils about keystroke capture.


Level: Intermediate

What you get:

  1. 8 PNG images of a blue beetle at different angles.

  2. “BEETLES”: a stack leveraging the ARROW Keys on the keyboard to exchange images inside a graphic frame. [ the code for this is in the cardScript ]

  3. “BEETLES 8”: a stack using the 1,2,3,4,6,7,8 & 9 keys of the number pad on the keyboard to exchange images
    inside a graphic frame. [ the code for this is in the cardScript ] This stack uses rawKeyDown / rawKeyUp

  4. “BEETLES move”: a stack leveraging the ARROW Keys on the keyboard to exchange images inside a graphic frame, and move it. [ the code for this is in the cardScript ]

Ideally pupils should be given the first stack (“BEETLES”) with the code for the “right”, “left” and “down” keys removed so that they can complete that.

Then pupils should be given “BEETLES 8” with all but the code for number pad keys 8 and 9 removed.

Then the pupils can play around with “BEETLES move” and use what they learn from that to animate the graphic in “BEETLES 8”.

An active bunch of kids should get through this lot in about 90 minutes: my starters did in their 9th class.

Disclaimers:


By downloading this resource you agree to the CAS resource guidelines and use it appropriately.

Note: Unless otherwise specified, this resource and all associated files are published here under the Creative Commons Attribution-Share Alike 3.0 Licence. If you wish to use a different license, please state this here.

Read our resource guidelines

Feedback and Comments


Available when logged in (join via the front page, for free):
  • View 1 comments on this resource.
  • View resource history, links to related resources.
  • Leave feedback for the author(s), or help by editing the resource.
Snapshot

This resource has attached files: to access these files, please tick the box below to assent to the license terms

License: The resources on CAS website are under Creative Commons Attribution-Share Alike 3.0 licence unless otherwise specified by the resource creators.

You must confirm that you have read and agree the licence's ToS before you can download the attachments of this resource.

It has been downloaded 9 times.

I have read the licence agreement of this resource and agree to abide by its terms and conditions.
Categories: