Sparkly drop targets

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: 10418
Joined: Fri Feb 19, 2010 10:17 am

Sparkly drop targets

Post by richmond62 »

Inspired by a suggestion by Brahmanathaswami:

http://andregarzia.on-rev.com/richmond/ ... vecode.zip

The code is in the group "GreenDOG".

Enjoy!

Richmond.
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10418
Joined: Fri Feb 19, 2010 10:17 am

Re: Sparkly drop targets

Post by richmond62 »

I've just posted an updated version: the 'dog' on the left uses the animated GIF I downloaded from the internet,

the 'dog' on the right uses an animated GIF I have just made myself.
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10418
Joined: Fri Feb 19, 2010 10:17 am

Re: Sparkly drop targets

Post by richmond62 »

Oh:

I cheated by making a set of differently sized PNGs and then going here:

http://gifmaker.me/

Lovely job!
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10418
Joined: Fri Feb 19, 2010 10:17 am

Re: Sparkly drop targets

Post by richmond62 »

Crayons that sparkle as they are moved.
Attachments
crayons.livecode.zip
Here it is.
(48.93 KiB) Downloaded 741 times
Brahmanathaswami
Posts: 52
Joined: Mon Jun 24, 2013 4:10 am
Contact:

Re: Sparkly drop targets

Post by Brahmanathaswami »

But the crayons do not follow the mouse, they jump from one location to the next.
paul_gr
Posts: 319
Joined: Fri Dec 08, 2006 7:38 pm

Re: Sparkly drop targets

Post by paul_gr »

Brahmanathaswami wrote:But the crayons do not follow the mouse, they jump from one location to the next.
Same here. They don't move until the animation stops.

Paul
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10418
Joined: Fri Feb 19, 2010 10:17 am

Re: Sparkly drop targets

Post by richmond62 »

If your processor is fast enough they do move.

That is the main problem with this.
paul_gr
Posts: 319
Joined: Fri Dec 08, 2006 7:38 pm

Re: Sparkly drop targets

Post by paul_gr »

richmond62 wrote:If your processor is fast enough they do move.
That is the main problem with this.
Hi Richmond,
I'm using LC 6.6.2 on Windows 8, HP Z230 Workstation, i7 4th gen, 16Gb ram....
This is a fast computer:-)
What LC version are you using and on what platform?

Paul
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10418
Joined: Fri Feb 19, 2010 10:17 am

Re: Sparkly drop targets

Post by richmond62 »

I'm using 6.6.2 on a DELL Optiplex 745 running UbuntiStudio 14.04.1: it has 2 processors running at 1.8 GHz (it is about 6 or 7 years old - bought it for about $100 3 years ago: never looked back!).
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10418
Joined: Fri Feb 19, 2010 10:17 am

Re: Sparkly drop targets

Post by richmond62 »

Here's something that is rather fun:

http://andregarzia.on-rev.com/richmond/ ... vecode.zip
WobbleSs.gif
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10418
Joined: Fri Feb 19, 2010 10:17 am

Re: Sparkly drop targets

Post by richmond62 »

By-ther-way those people who have access to a Windows OS environment and/or WINE might like to know
about this:

http://www.freedownloadsplace.com/Bryce ... -40177.htm
mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3582
Joined: Mon Jan 22, 2007 7:36 am
Contact:

Re: Sparkly drop targets

Post by mwieder »

In the crayons stack, move the "wait 1 tick" line down one line, just before the "add 1 to KOUNTER" line (out of the innermost repeat loop) and the crayon will move with the mouse movements, although at a bit of expense to the sparkly stuff.
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10418
Joined: Fri Feb 19, 2010 10:17 am

Re: Sparkly drop targets

Post by richmond62 »

Thanks, Mark: great help!
Post Reply