Page 2 of 2

Re: Moving Waves script

Posted: Fri Dec 11, 2015 7:39 pm
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

Re: Moving Waves script

Posted: Fri Dec 11, 2015 7:54 pm
by Lafamya
I know that, but when I did that look what happened they all return to the same location of your version why!

Re: Moving Waves script

Posted: Fri Dec 11, 2015 8:05 pm
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!

Re: Moving Waves script

Posted: Fri Dec 11, 2015 8:07 pm
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 7677 times
Then have a look at the script inside that button :)

Re: Moving Waves script

Posted: Fri Dec 11, 2015 8:13 pm
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!

Re: Moving Waves script

Posted: Fri Dec 11, 2015 8:17 pm
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:

Re: Moving Waves script

Posted: Fri Dec 11, 2015 8:45 pm
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

Re: Moving Waves script

Posted: Fri Dec 11, 2015 8:47 pm
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

Re: Moving Waves script

Posted: Fri Dec 11, 2015 10:24 pm
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

Re: Moving Waves script

Posted: Fri Dec 11, 2015 10:39 pm
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.

Re: Moving Waves script

Posted: Fri Dec 11, 2015 10:41 pm
by Lafamya
Thanks a lot!