Animation & blendLevel
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Livecode Opensource Backer
- Posts: 9454
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Animation & blendLevel
Well, you know how it goes: a glass of dark beer, a cup of coffee . . .
This is fairly simplistic stuff, but it might get some kids' digestive juices flowing.
The code is in the cardScript: play with the Right and Left Arrow Keys to see the fun.
Updated version available below.
This is fairly simplistic stuff, but it might get some kids' digestive juices flowing.
The code is in the cardScript: play with the Right and Left Arrow Keys to see the fun.
Updated version available below.
Last edited by richmond62 on Fri Apr 13, 2018 6:27 pm, edited 1 time in total.
Re: Animation & blendLevel
Nice, but I think the keyboard repeat build up needs to be limited a bit
-
- Livecode Opensource Backer
- Posts: 9454
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Animation & blendLevel
There IS a way to limit that, but, for the life of me, I can't remember how to do that.the keyboard repeat build up
-
- Livecode Opensource Backer
- Posts: 9454
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Animation & blendLevel
Version with flushEvents implemented.put flushEvents("keyDown") into temp
put flushEvents("keyUp") into temp
https://www.dropbox.com/s/uyiagfq9peifo ... e.zip?dl=0
use flushEvents to prevent the animation going into overdrive,
because you are "going bonkers" and bashing the arrowKeys as if your life depends on that.
Last edited by richmond62 on Fri Apr 13, 2018 7:33 pm, edited 1 time in total.
Re: Animation & blendLevel
Heh, should have thought of that one myselfrichmond62 wrote: ↑Fri Apr 13, 2018 6:28 pmuse flushEvents to prevent the animation going into overdrive,
-
- Livecode Opensource Backer
- Posts: 9454
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
-
- Livecode Opensource Backer
- Posts: 9454
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Animation & blendLevel
That is pretty neat.