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

Sparkly drop targets

Post by richmond62 » Thu Aug 21, 2014 11:13 am

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

Re: Sparkly drop targets

Post by richmond62 » Thu Aug 21, 2014 12:59 pm

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

Re: Sparkly drop targets

Post by richmond62 » Thu Aug 21, 2014 1:03 pm

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

Re: Sparkly drop targets

Post by richmond62 » Fri Aug 22, 2014 10:15 am

Crayons that sparkle as they are moved.
Attachments
crayons.livecode.zip
Here it is.
(48.93 KiB) Downloaded 379 times

Brahmanathaswami
Posts: 52
Joined: Mon Jun 24, 2013 4:10 am
Location: Hawaii
Contact:

Re: Sparkly drop targets

Post by Brahmanathaswami » Fri Aug 22, 2014 11:09 pm

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
Location: Blenheim, New Zealand

Re: Sparkly drop targets

Post by paul_gr » Fri Aug 22, 2014 11:11 pm

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

Re: Sparkly drop targets

Post by richmond62 » Sat Aug 23, 2014 9:22 am

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
Location: Blenheim, New Zealand

Re: Sparkly drop targets

Post by paul_gr » Sat Aug 23, 2014 10:10 am

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

Re: Sparkly drop targets

Post by richmond62 » Sat Aug 23, 2014 12:03 pm

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

Re: Sparkly drop targets

Post by richmond62 » Sat Aug 23, 2014 1:03 pm

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

Re: Sparkly drop targets

Post by richmond62 » Sat Aug 23, 2014 1:09 pm

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: 3581
Joined: Mon Jan 22, 2007 7:36 am
Location: Berkeley, CA, US
Contact:

Re: Sparkly drop targets

Post by mwieder » Sat Aug 23, 2014 6:10 pm

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

Re: Sparkly drop targets

Post by richmond62 » Sat Aug 23, 2014 6:14 pm

Thanks, Mark: great help!

Post Reply

Return to “Teaching with LiveCode”