Page 1 of 1

visual effect "push Left"? -- SOLVED

Posted: Wed Jun 16, 2021 12:15 pm
by DR White
I have tried everything to get my cards to push left, but I can not get it to work!!

I have went to the dictionary countless times and copied the example code, but it doesn't work.
I have seen it work on other stacks, but not this one.

Can someone explain, why it may not work on this stack?

Code used in this stack:
visual effect "push Left "
go to card "Splash"

After the above code is exucuted, the new card just appears (no push left).
I have tried other effects, but none of them work.

Thanks,

David

Re: visual effect "push Left"?

Posted: Wed Jun 16, 2021 12:26 pm
by bogs
Well, I see you have your 'push left' in quotes, which isn't how it shows in my dictionary. I set up a stack with 2 cards on it, I put a field on one card, and a tab group on another.

In the stack script, I put :

Code: Select all

on mouseUp
   visual effect push left
   go to the next card
end mouseUp

Seems to work as advertised here ?

Image

Re: visual effect "push Left"?

Posted: Wed Jun 16, 2021 12:30 pm
by Klaus
Hi David,

please try the "official" syntax:

Code: Select all

...
lock screen for visual effect
go next
unlock screen with visual push left
...
Best

Klaus

Re: visual effect "push Left"?

Posted: Wed Jun 16, 2021 12:43 pm
by DR White
Leaving the quote off made all the difference!!!

The dictionary example showed:
---
visual effect "dissolve"
go next card
---

So I used quotes!

Thanks too much!! :D

The LiveCode Forum is the BEST!!

Re: visual effect "push Left"? -- SOLVED

Posted: Wed Jun 16, 2021 1:02 pm
by DR White
I also found a "Lock screen" that was causing a problem.