Page 1 of 1
Animation & blendLevel
Posted: Thu Apr 12, 2018 10:28 pm
by richmond62
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.
Re: Animation & blendLevel
Posted: Fri Apr 13, 2018 5:59 am
by bogs
Nice, but I think the keyboard repeat build up needs to be limited a bit
Re: Animation & blendLevel
Posted: Fri Apr 13, 2018 10:55 am
by richmond62
the keyboard repeat build up
There IS a way to limit that, but, for the life of me, I can't remember how to do that.
Re: Animation & blendLevel
Posted: Fri Apr 13, 2018 6:28 pm
by richmond62
put flushEvents("keyDown") into temp
put flushEvents("keyUp") into temp
Version with
flushEvents implemented.
https://www.dropbox.com/s/uyiagfq9peifo ... e.zip?dl=0
- twitchy.png (7.34 KiB) Viewed 8824 times
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.
Re: Animation & blendLevel
Posted: Fri Apr 13, 2018 7:23 pm
by bogs
richmond62 wrote: ↑Fri Apr 13, 2018 6:28 pm
use flushEvents to prevent the animation going into overdrive,
Heh, should have thought of that one myself
- FlushEvents !!
Re: Animation & blendLevel
Posted: Fri Apr 13, 2018 7:32 pm
by richmond62
Re: Animation & blendLevel
Posted: Fri Apr 13, 2018 7:35 pm
by bogs
Bwahahaha
Re: Animation & blendLevel
Posted: Fri Apr 13, 2018 7:43 pm
by richmond62
Lovely,
lovely,
FREE imagery for games here:
https://craftpix.net
Re: Animation & blendLevel
Posted: Fri Apr 13, 2018 9:29 pm
by bogs
That is pretty neat.