Page 1 of 1

Visual Effect: Curl

Posted: Fri Nov 12, 2010 7:47 pm
by ctflatt
Thank you for including visual effects in the latest pre-alpha.

Can we ask for a page curl effect that is left to right, or right to left, in addition to the up/down options currently available?

Re: Visual Effect: Curl

Posted: Mon Nov 15, 2010 3:41 am
by RickD
Following up on the previous post, how do you implement the visual effects?

I want to do dissolve from on card when a user presses the "settings" button?

Re: Visual Effect: Curl

Posted: Mon Nov 15, 2010 10:29 pm
by ctflatt
Try this handler on your settings button:

on mouseUp
visual effect dissolve slow
go next card -- or the card you need to transition to
end mouseUp

Note: Some visual effects (like curl) are only viewable in the Simulator or on a device.

Hope this helps.

Re: Visual Effect: Curl

Posted: Tue Nov 16, 2010 12:45 am
by RickD
That is exactly what I was looking for. I looked at all the docs but could not find it.

Thanks a million ctflatt!

Re: Visual Effect: Curl

Posted: Tue Nov 30, 2010 11:45 pm
by Ron Zellner
Did I miss something here? I tried this and it produced a traditional dissolve transition.
I deployed my attempts as apps and ran them on my iPad and still no curl. I still don't see how to get a page curl transition.
I also tried:

visual effect "curl left"

It would not accept the code without the quotes
But that just produced a new card with no transition (no error was indicated)

Is there some place with a listing of the new code that is available with the iOS developer resources?

Re: Visual Effect: Curl

Posted: Wed Dec 01, 2010 12:51 am
by RickD
Hi Ron:

Documentation is found in the ios_prerelease_handbook.pdf...included in your download.

Visual effect support
The iOS engine now has support for a range of visual effects – including some specific to iOS. The
following effects are available:
• scroll (up | left | down | right)
• reveal (up | left | down | right)
• push (up | left | down | right)
• dissolve
• curl (up | down)
• flip (left | right)
Speed can be controlled via the usual adjectives very slow, slow, normal, fast or very fast.
Note: Visual effects do not currently work correctly when in landscape orientation.

As you can see, there is no "Curl Left" implementation yet. Only curl up or curl down.

This is the code that I use and it works 100% of the time...

on mouseUp
visual effect flip right normal
go to card "SomeCard"
end mouseUp

Hope this helps.

Re: Visual Effect: Curl

Posted: Wed Dec 01, 2010 3:35 am
by Ron Zellner
Thanks, I thought I did a search in the os_prerelease_handbook.pdf for "curl", but I guess I didn't. The list was there as you said. I knew I had seen it someplace.

Ron

Re: Visual Effect: Curl

Posted: Wed Dec 01, 2010 11:12 pm
by ctflatt
Have you tried...

on mouseUp
visual effect curl up
go next card
end mouseUp

This works in the simulator only, not in the IDE.

It's working for me... even when deployed to the device.

Let me know.