Sparkly drop targets

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

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

Sparkly drop targets

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

Re: Sparkly drop targets

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

Re: Sparkly drop targets

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

Re: Sparkly drop targets

Postby 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 111 times
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
 
Posts: 1845
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Sparkly drop targets

Postby Brahmanathaswami » Fri Aug 22, 2014 11:09 pm

But the crayons do not follow the mouse, they jump from one location to the next.
Brahmanathaswami
 
Posts: 46
Joined: Mon Jun 24, 2013 4:10 am
Location: Hawaii

Re: Sparkly drop targets

Postby 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
paul_gr
Livecode Membership
 
Posts: 315
Joined: Fri Dec 08, 2006 7:38 pm
Location: Blenheim, New Zealand

Re: Sparkly drop targets

Postby richmond62 » Sat Aug 23, 2014 9:22 am

If your processor is fast enough they do move.

That is the main problem with this.
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
 
Posts: 1845
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Sparkly drop targets

Postby 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
paul_gr
Livecode Membership
 
Posts: 315
Joined: Fri Dec 08, 2006 7:38 pm
Location: Blenheim, New Zealand

Re: Sparkly drop targets

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

Re: Sparkly drop targets

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

Re: Sparkly drop targets

Postby 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
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
 
Posts: 1845
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Sparkly drop targets

Postby 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.
mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
 
Posts: 2561
Joined: Mon Jan 22, 2007 7:36 am
Location: Berkeley, CA, US

Re: Sparkly drop targets

Postby richmond62 » Sat Aug 23, 2014 6:14 pm

Thanks, Mark: great help!
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
 
Posts: 1845
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria


Return to Teaching with LiveCode

Who is online

Users browsing this forum: No registered users and 1 guest