Moving Waves script

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

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

Re: Moving Waves script

Post by richmond62 »

That is extremely easy:

First of all have a look at the first wave, image "w1" in the properties palette,
and change the values so the image resizes to what you require:
Screenshot_2015-12-11_20-37-48.png
Lafamya
Posts: 16
Joined: Sun Nov 08, 2015 6:16 am

Re: Moving Waves script

Post by Lafamya »

I know that, but when I did that look what happened they all return to the same location of your version why!
Attachments
Screen Shot 2015-12-11 at 1.50.45 PM copy.jpg
Lafamya
Posts: 16
Joined: Sun Nov 08, 2015 6:16 am

Re: Moving Waves script

Post by Lafamya »

richmond62
Lafamya wrote:I know that, but when I did that look what happened they all return to the same location of your version why!
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10430
Joined: Fri Feb 19, 2010 10:17 am

Re: Moving Waves script

Post by richmond62 »

Hang on a minute . . . just uploading something for you . . .

Ah; there we are: https://www.dropbox.com/s/qh84ragh4mjh0 ... 2.zip?dl=0

see what happens when you click on the "HIGH TIDE" button.
HighTide.png
HighTide.png (14.02 KiB) Viewed 7686 times
Then have a look at the script inside that button :)
Last edited by richmond62 on Fri Dec 11, 2015 10:35 pm, edited 1 time in total.
Klaus
Posts: 14325
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Moving Waves script

Post by Klaus »

Lafamya wrote:I know that, but when I did that look what happened they all return to the same location of your version why!
Please take a look at the checkbox above the red rectangle in Richmond's image, and then look at your inspector for that namely image!
Lafamya
Posts: 16
Joined: Sun Nov 08, 2015 6:16 am

Re: Moving Waves script

Post by Lafamya »

richmond62 wrote:Hang on a minute . . . just uploading something for you . . .

Ah; there we are: https://www.dropbox.com/s/qh84ragh4mjh0 ... 2.zip?dl=0

see what happens when you click on the "HIGH TIDE" button.
HighTide.png
The have a look at the script inside that button :)
Wow the script has too many names that I have no idea which is responsible to change the location for the waves and the parities, can you please underline the number the responsible about the locations please, I really appreciate your help so much :cry:
Klaus
Posts: 14325
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Moving Waves script

Post by Klaus »

Hi Lafamya,

do yourself a favour and check most, if not all of these stacks to learn the very basics of Livecode:
http://www.hyperactivesw.com/revscriptc ... ences.html


Best

Klaus
Lafamya
Posts: 16
Joined: Sun Nov 08, 2015 6:16 am

Re: Moving Waves script

Post by Lafamya »

Klaus wrote:Hi Lafamya,

do yourself a favour and check most, if not all of these stacks to learn the very basics of Livecode:
http://www.hyperactivesw.com/revscriptc ... ences.html


Best

Klaus
Oh thank you thank you thank you so much :) yes I will that is very useful.

Best regards
Lafamya
Posts: 16
Joined: Sun Nov 08, 2015 6:16 am

Re: Moving Waves script

Post by Lafamya »

richmond62 wrote:Hang on a minute . . . just uploading something for you . . .

Ah; there we are: https://www.dropbox.com/s/qh84ragh4mjh0 ... 2.zip?dl=0

see what happens when you click on the "HIGH TIDE" button.
HighTide.png
The have a look at the script inside that button :)
I hope if you could just answer me what is the following name for ?!
KOUNT
Kfree


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

Re: Moving Waves script

Post by richmond62 »

KOUNT is just the name I chose for my variable to 'count' round the REPEAT loops.

Kfree is the name I chose for the variable that holds the value of KOUNT*3.

I chose those names so I could remember what their jobs were and so they didn't
conflict with reserved words in LiveCode.

I do suggest you follow Klaus's extremely good advice as this sort of explanation
is "baby stuff" which you should be able to work out for yourself with a little bit
of thinking and digging in the built-in help system and all the marvellous resources
on the LiveCode website.
Lafamya
Posts: 16
Joined: Sun Nov 08, 2015 6:16 am

Re: Moving Waves script

Post by Lafamya »

Thanks a lot!
Post Reply