Ripple Effect Button

Want to talk about something that isn't covered by another category?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

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

Ripple Effect Button

Post by richmond62 » Tue Jun 14, 2022 9:13 pm

SShot 2022-06-14 at 23.11.37.png
SShot 2022-06-14 at 23.11.37.png (11.14 KiB) Viewed 7415 times
Attachments
ripple.livecode.zip
Stack.
(2.07 KiB) Downloaded 174 times

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10357
Joined: Wed May 06, 2009 2:28 pm

Re: Ripple Effect Button

Post by dunbarx » Tue Jun 14, 2022 10:29 pm

Richmond.

Nothing happens.

Craig

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10357
Joined: Wed May 06, 2009 2:28 pm

Re: Ripple Effect Button

Post by dunbarx » Tue Jun 14, 2022 10:51 pm

Richmond.

Looking at your code it seems like the grc grows far too quickly to the limit you set, and then returns to something small. Try putting

Code: Select all

wait 1
in the loop somewhere.

Also, the image never goes away, so the grc is really not seen. Lose that image in the prep work and restore it afterwards, if it contributes somehow to your overall idea.

Craig

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10357
Joined: Wed May 06, 2009 2:28 pm

Re: Ripple Effect Button

Post by dunbarx » Tue Jun 14, 2022 11:01 pm

Richmond.

Why do you call it "Ripple". I was excited when I first saw it, thinking it made some sort of wave-like effect, not that it just got larger.

Hey, why not try your hand at that? You are the image guy.

I can imagine a string of images that appear in sequence, each slightly different that express a true "ripple", would be really cool. These together could act like a single waving button, as long as you had a mouseUp handler in the card script.

Do it with the Bulgarian flag. Remember to loop back to the beginning at the end.

Craig

andresdt
Posts: 156
Joined: Fri Aug 16, 2019 7:51 pm
Contact:

Re: Ripple Effect Button

Post by andresdt » Wed Jun 15, 2022 5:25 am

Some time ago I tried to do something like that. Here is what I achieved, I hope it helps you.
Attachments
Ripple.zip
(1.79 KiB) Downloaded 167 times
Be kind, we all have our own wars.
https://torocruzand.com/

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

Re: Ripple Effect Button

Post by richmond62 » Wed Jun 15, 2022 8:57 am

I suffer from 2 problems:
-
SShot 2022-06-15 at 10.53.16.png
SShot 2022-06-15 at 10.53.16.png (55.68 KiB) Viewed 7333 times
-
1. I have red hair, so I burn in the sun.
-
https://livecode.com/megabundle/whats-in-it/
-
SShot 2022-06-14 at 22.36.36.png
-
2. I am incredibly mean when it comes to money.

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

Re: Ripple Effect Button

Post by richmond62 » Wed Jun 15, 2022 9:03 am

Some time ago I tried to do something like that. Here is what I achieved, I hope it helps you.
Those are certainly better than mine.

ALTHOUGH (inevitable dig), I am interested to know how you manage to
get away with multiple graphics with the same name.

Well, it helps me only insofar as letting me know that my attempt is not up to much. 8)

I am beginning to feel very stupid indeed as an cannot find any mouseDown / mouseUp scripts
in any of the objects underlying where I click.

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

Re: Ripple Effect Button

Post by richmond62 » Wed Jun 15, 2022 12:40 pm

SShot 2022-06-15 at 14.37.13.png
-
Arguably slightly better.
-
Removed stack: see below.
Last edited by richmond62 on Wed Jun 15, 2022 12:47 pm, edited 1 time in total.

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

Re: Ripple Effect Button

Post by richmond62 » Wed Jun 15, 2022 12:47 pm

That previous offering was a load of b*ll*cks as the ripple effect obscured the button text.
-
SShot 2022-06-15 at 14.48.31.png
Attachments
ripple.livecode.zip
Stack.
(3.36 KiB) Downloaded 148 times

andresdt
Posts: 156
Joined: Fri Aug 16, 2019 7:51 pm
Contact:

Re: Ripple Effect Button

Post by andresdt » Wed Jun 15, 2022 1:53 pm

richmond62 wrote:
Wed Jun 15, 2022 9:03 am
ALTHOUGH (inevitable dig), I am interested to know how you manage to
get away with multiple graphics with the same name.
Instead of referring to the graphics by their name, I do so by the number they occupy within the group.
richmond62 wrote:
Wed Jun 15, 2022 9:03 am
I am beginning to feel very stupid indeed as an cannot find any mouseDown / mouseUp scripts
in any of the objects underlying where I click.
The script is in the "Effect-Ripple-Button-MD" button, which is used as the behavior.
Be kind, we all have our own wars.
https://torocruzand.com/

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

Re: Ripple Effect Button

Post by richmond62 » Wed Jun 15, 2022 1:55 pm

Thanks for the helpful answers.

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10357
Joined: Wed May 06, 2009 2:28 pm

Re: Ripple Effect Button

Post by dunbarx » Wed Jun 15, 2022 2:36 pm

All.

Still think that a "waving flag" button, what I originally thought was the intended effect, is a task worth pursuing. It should be straightforward, as I wrote above, and would actually earn the moniker "ripple".

Craig

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

Re: Ripple Effect Button

Post by richmond62 » Wed Jun 15, 2022 2:55 pm

Do it with the Bulgarian flag.
For what earthly reason would I want to do that?

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10357
Joined: Wed May 06, 2009 2:28 pm

Re: Ripple Effect Button

Post by dunbarx » Wed Jun 15, 2022 4:55 pm

I thought you had a soft spot for Bulgaria.

Craig

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7395
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Ripple Effect Button

Post by jacque » Wed Jun 15, 2022 5:08 pm

dunbarx wrote:
Wed Jun 15, 2022 2:36 pm
Still think that a "waving flag" button, what I originally thought was the intended effect, is a task worth pursuing.
Scott Rossi did that some years ago with an American flag, it was very realistic. It may still be on his web site somewhere.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Post Reply