Visual effect problems in iOS

Graham Samuel livfoss at mac.com
Tue Feb 21 12:41:28 EST 2012


Thanks Chris

I am embarrassed to say that my card-to-card effects are now working! I had a completely repeatable recipe to show they won't working yesterday, but a restart of my machine and a test immediately afterwards (both on the simulator and the iPad itself) showed the effects working fine. Since I hadn't changed the code of my app between the two tests, I can only think that I somehow messed up the IDE with other stuff I did in the previous sessions. If I find out exactly how to cause the problem, I will report it. Meanwhile thanks for the advice. 

Right now I no longer want to do stack-to-stack transitions, but your advice on this will be stored away in the scrapbook for later use.

Graham
Back to the next problem - embedded sounds.

On Tue, 21 Feb 2012 08:37:14 -0700, Chris Sheffield <cmsheffield at me.com>wrote:

> Graham,
> 
> Not sure if you've ever found a solution for this problem, but I've got a couple other suggestions that may help.
> 
> First, if you're simply issuing a command like:
> 
> 	visual effect "whatever"
> 	go cd "someCard"
> 
> then this should work just fine. I've found that if something like this is not working, it's usually because I have some kind of error that's occurring in the script (usually preOpenCard) of the card I'm trying to go to. Nothing to do in this case but debug and try to figure out what's going on. With that said, I have actually found, and I believe others have as well, that you get a very slight performance boost if you use the "lock screen for visual effect" command instead of the above method. So something like:
> 
> 	lock screen for visual effect
> 	go cd "someCard"
> 	unlock screen with visual effect "whatever"
> 
> So you might give that a try and see what happens. As I said, it's not necessary to do it this way, and the first method should work just fine.
> 
> If I remember correctly, your original post also mentioned using a visual effect when moving to different stacks. If not, disregard the following. I've found a way that works well for me. There are probably others. I was also having issues with this at one point, and I found this worked just fine. Something like:
> 
> 	visual effect "whatever"
> 	go cd "someCard" of stack "theToStack"
> 	close stack "theFromStack"
> 
> It seems to be necessary to specify a card, even if there's only one, when using the go command, otherwise the visual effect doesn't happen. And the same goes for the close stack command. It's supposedly not necessary to do that, as in iOS only one stack is open at a time, but, once again, I found that the effect did not work correctly if I didn't issue that command.
> 
> Hope some of this helps. Once again, if you find that visual effects are not happening like they should, but the code is correct and you *are* moving to the desired card, most likely it's a script error somewhere.
> 
> Chris
> 
> 
> --
> Chris Sheffield
> Read Naturally, Inc.
> www.readnaturally.com




More information about the use-livecode mailing list