Visual effects

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
anmldr
Posts: 459
Joined: Tue Sep 11, 2012 11:13 pm

Visual effects

Post by anmldr » Thu Feb 05, 2015 5:54 am

To save anyone time in viewing what transitions are available, here is a stack.
Attachments
visualEffects.livecode.zip
(2.87 KiB) Downloaded 440 times

josepxavier
Posts: 6
Joined: Wed Oct 08, 2014 6:12 pm

Re: Visual effects

Post by josepxavier » Thu Feb 12, 2015 8:43 pm

thank you very much :shock: :D

keram
Posts: 340
Joined: Fri Nov 08, 2013 4:22 am

Re: Visual effects

Post by keram » Sun Feb 15, 2015 4:25 am

Thanks anmldr,

One thing though...
Some of the visual effects are buggy. When you include the official script for using them, for example:

Code: Select all

on mouseUp
   lock screen for visual effect
   unlock screen with visual  effect scroll right 
   go next
end mouseUp
(the quotation marks around the name of the effect are not needed according to dictionary)
then you see the bugs that are reported here: http://quality.runrev.com/show_bug.cgi?id=12641
Check the reveal right as well with the code above

keram
Using the latest stable version of LC Community 6.7.x on Win 7 Home Premium, 64bit

anmldr
Posts: 459
Joined: Tue Sep 11, 2012 11:13 pm

Re: Visual effects

Post by anmldr » Sun Feb 15, 2015 8:25 pm

I guess it depends on if you have variable checking on or not?

Linda

keram
Posts: 340
Joined: Fri Nov 08, 2013 4:22 am

Re: Visual effects

Post by keram » Mon Feb 16, 2015 1:49 am

Hi Linda,

No, even with variable checking on you don't get any error when omitting the quotation marks in this case.

keram
Using the latest stable version of LC Community 6.7.x on Win 7 Home Premium, 64bit

keram
Posts: 340
Joined: Fri Nov 08, 2013 4:22 am

Re: Visual effects

Post by keram » Tue Feb 24, 2015 4:23 am

Actually, does anyone know why the lock screen for visual effect and unlock screen with visual effect... parts of the script have been added?? What if we don't include it and create a mobile standalone? Will it create a problem?

keram
Using the latest stable version of LC Community 6.7.x on Win 7 Home Premium, 64bit

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Visual effects

Post by Klaus » Tue Feb 24, 2015 1:15 pm

Hi keram,
keram wrote:Actually, does anyone know why the lock screen for visual effect and unlock screen with visual effect... parts of the script have been added?
only the RunRev engineers may know...
keram wrote:What if we don't include it and create a mobile standalone? Will it create a problem?
What do you think? Try it, cry and then tell us 8)


Best

Klaus

keram
Posts: 340
Joined: Fri Nov 08, 2013 4:22 am

Re: Visual effects

Post by keram » Tue Feb 24, 2015 4:48 pm

I tried and cannot tell if there is any difference - it works in both cases.
Using the latest stable version of LC Community 6.7.x on Win 7 Home Premium, 64bit

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Visual effects

Post by Klaus » Tue Feb 24, 2015 5:06 pm

Then you were lucky, usually iOS apps will crash when NOT using the official syntax!
Which shouldn't happen anyway! 8)

But I am really wondering why you question the official syntax at all!?
Is your life so boring? :D

keram
Posts: 340
Joined: Fri Nov 08, 2013 4:22 am

Re: Visual effects

Post by keram » Tue Feb 24, 2015 5:26 pm

Klaus wrote:Then you were lucky, usually iOS apps will crash when NOT using the official syntax!
Which shouldn't happen anyway! 8)
I tried with Android app. Right now I cannot test any iOS apps.
Klaus wrote:But I am really wondering why you question the official syntax at all!?
I'm not questioning the official syntax, only I want to use one of the visual effects that do not work properly with the official syntax and the bug has not been fixed. That's why my question.
Using the latest stable version of LC Community 6.7.x on Win 7 Home Premium, 64bit

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

Re: Visual effects

Post by jacque » Thu Feb 26, 2015 5:52 am

The new syntax was introduced when image caching in the engine was implemented, somewhere in verion 6 I think. The engine now uses caching to speed up performance, and that required a change in how visual effects were used. The "for visual effect" addition tells the engine to cache the card image before applying a visual effect.

They should all work as advertised, so if they don't it's a bug. Which ones fail?
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

keram
Posts: 340
Joined: Fri Nov 08, 2013 4:22 am

Re: Visual effects

Post by keram » Thu Feb 26, 2015 9:43 am

Hi Jacqueline,
jacque wrote: Which ones fail?
The ones with red buttons - basically all of them (see the attached stack). I cannot test the curl.
I added to the red ones: lock screen for visual effect/unlock screen with visual effect...
Compare with the corresponding ones without lock/unlock

BUT here is something that I've noticed after more careful reading of the Dictionary and the User Guide that perhaps you could confirm:

visual effect - from the Dictionary:
"When you issue a visual effect command, it is stored to be used the next time you navigate to another card in the same window with the go, find, or pop command. Usually, you place the visual effect command immediately before these commands in a handler, like this:

visual effect dissolve -- sets up the effect
go to card Index -- effect is seen during the go

[So here there is no lock screen used!]
...

"To execute a visual effect without moving to another card, lock the screen, make any changes you want to the card's appearance, and use the unlock screen with visual effect form of the lock screen command."



from the LC User Guide:

"Use the visual effect command to display a visual effect. To go to the next card with a dissolve transition effect:

visual effect dissolve slow
go next card

[no lock screen used!]

"To make changes to objects on the screen with a visual effect (e.g. hide, show or move them), first lock the screen, then make the changes, then unlock the screen:

lock screen
hide image 1
show image 3
unlock screen with visual effect "wipe right"

----

So from these it seems that lock screen etc is only necessary when hiding, showing, moving objects on the same card. In that case all the effects in the attached stack would be working OK since they all go to next card.
Is that correct?

keram
Attachments
visualEffects2.zip
(2.67 KiB) Downloaded 319 times
Using the latest stable version of LC Community 6.7.x on Win 7 Home Premium, 64bit

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

Re: Visual effects

Post by jacque » Thu Feb 26, 2015 10:38 pm

The navigation effects were grandfathered in after the new caching scheme was implemented. I think they mostly still work but I haven't tested them all. The engine is probably doing the lock/unlock for you in the background.

The curl effect requires QuickTime, and I'm guessing some of the others you say don't work also require it. (I don't usually download and examine stacks so I haven't looked at yours.) QT is deprecated now, so LC ships with it disabled. You can re-enable it with:

set the dontUseQT to false

But many Windows users won't have QT installed, no mobile devices will, and eventually it may be discontinued on Macs.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Post Reply