A LiveCode stack demonstrating important facets of programming
Created by Richmond Mathewson
last edited Apr 14 2018 by Richmond Mathewson
To run this code you will need LiveCode Community:
I recommend version 8.1.9.
Here is a “bog basic” LiveCode stack using pre-made images to simulate a boy running across a desert scene.
ALL the code is contained in the cardScript.
This contains a pair of repeat loops to “flash up” images to simulate motion.
This uses blendLevel to effect a change from daylight to nighttime.
This uses flushEvents to ensure that, if the end-user keeps pressing an arrow key, the repeat loops do NOT keep “firing” until the first repeat loops have finished.
ALL action is controlled using the Right and Left arrow keys on the keyboard.
Duration: As long as you, your teacher or your best friend thinks is necessary
Teaches: repeat loops, blendLevel and flushEvents
Credit where credit is due: imagery is from here: https://craftpix.net