visual effect "push Left"? -- SOLVED

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
DR White
Posts: 685
Joined: Fri Aug 23, 2013 12:29 pm
Location: Virginia, USA

visual effect "push Left"? -- SOLVED

Post by DR White » Wed Jun 16, 2021 12:15 pm

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
Last edited by DR White on Wed Jun 16, 2021 12:43 pm, edited 1 time in total.

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

Re: visual effect "push Left"?

Post by bogs » Wed Jun 16, 2021 12:26 pm

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
Image

Klaus
Posts: 13806
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: visual effect "push Left"?

Post by Klaus » Wed Jun 16, 2021 12:30 pm

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

DR White
Posts: 685
Joined: Fri Aug 23, 2013 12:29 pm
Location: Virginia, USA

Re: visual effect "push Left"?

Post by DR White » Wed Jun 16, 2021 12:43 pm

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!!

DR White
Posts: 685
Joined: Fri Aug 23, 2013 12:29 pm
Location: Virginia, USA

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

Post by DR White » Wed Jun 16, 2021 1:02 pm

I also found a "Lock screen" that was causing a problem.

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”