Animation & blendLevel

Teaching software development? Using LiveCode to build your curriculum? This is the forum for you.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10428
Joined: Fri Feb 19, 2010 10:17 am

Animation & blendLevel

Post by richmond62 »

Well, you know how it goes: a glass of dark beer, a cup of coffee . . .
RUNNING.jpg
This is fairly simplistic stuff, but it might get some kids' digestive juices flowing. 8)

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.
bogs
Posts: 5480
Joined: Sat Feb 25, 2017 10:45 pm

Re: Animation & blendLevel

Post by bogs »

Nice, but I think the keyboard repeat build up needs to be limited a bit :)
Image
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10428
Joined: Fri Feb 19, 2010 10:17 am

Re: Animation & blendLevel

Post 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.
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10428
Joined: Fri Feb 19, 2010 10:17 am

Re: Animation & blendLevel

Post 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
twitchy.png (7.34 KiB) Viewed 60798 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.
flush.png
Last edited by richmond62 on Fri Apr 13, 2018 7:33 pm, edited 1 time in total.
bogs
Posts: 5480
Joined: Sat Feb 25, 2017 10:45 pm

Re: Animation & blendLevel

Post 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 :twisted:
FlushEvents !!
FlushEvents !!
Image
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10428
Joined: Fri Feb 19, 2010 10:17 am

Re: Animation & blendLevel

Post by richmond62 »

Selection_003.png
bogs
Posts: 5480
Joined: Sat Feb 25, 2017 10:45 pm

Re: Animation & blendLevel

Post by bogs »

Bwahahaha :mrgreen:
Image
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10428
Joined: Fri Feb 19, 2010 10:17 am

Re: Animation & blendLevel

Post by richmond62 »

Lovely, lovely, FREE imagery for games here:

https://craftpix.net
bogs
Posts: 5480
Joined: Sat Feb 25, 2017 10:45 pm

Re: Animation & blendLevel

Post by bogs »

That is pretty neat.
Image
Post Reply