Visual effects in ide vs mobile

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
trags3
Posts: 432
Joined: Wed Apr 09, 2014 1:58 am

Visual effects in ide vs mobile

Post by trags3 » Wed Jan 28, 2015 8:34 pm

I have a card with 2 images. Each image covers the whole card.
I am trying to show the Layer 2 image show when the card opens. After about 1 sec I want the image at layer 1 to be uncovered with the iris visual effect.
Then I do some stuff (play a short audio file) and then I show the Layer 2 picture with visual effect.

When I run this in the IDE it all works like a charm. (the audio doesn't work but that's ok)
When I test on the iOS simulator. Everything works fine except the visual effects are completely missing.
Here is the code I am using:

on openCard
wait 1 Second
Hide image"Portal"with visual effect iris open very slowly
put "174.aiff" into tAudio
if the environment is mobile then
mobilePlaySoundOnChannel tAudio,"current", "now"
else
end if
wait 6 sec
show image Portal with visual effect iris close very slowly
go cd 1
end openCard

Am I doing something wrong?
I am using LC 7.0.1 on a Macbook Air with Yosemite OS.

Any help would be appreciated.
Thanks
Tom

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Visual effects in ide vs mobile

Post by Simon » Wed Jan 28, 2015 9:39 pm

From the dictionary
• plain
• checkerboard - Desktop / Web
• venetian blinds - Desktop / Web
• iris close | iris open - Desktop / Web
• zoom close | zoom in | zoom open | zoom out - Desktop / Web
• wipe up | wipe down | wipe right | wipe left - Desktop / Web
• dissolve
• push up | push down | push right | push left
• reveal up | reveal down | reveal right | reveal left - Desktop / Web / iOS / Android
• shrink to bottom | shrink to center | shrink to top - Desktop / Web
• stretch from bottom | stretch from center | stretch from top - Desktop / Web
• scroll up | scroll left | scroll down | scroll right - iOS / Android
• curl up | curl down - iOS
• flip left | flip right - iOS. The background behind the flip is taken from the background color of the current stack - i.e. the card is cut out and flipped over the stack.
iris is Desktop/Web only

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

trags3
Posts: 432
Joined: Wed Apr 09, 2014 1:58 am

Re: Visual effects in ide vs mobile

Post by trags3 » Wed Jan 28, 2015 10:03 pm

Simon
I should have thought to look in the dictionary.
What a shame, the iris effect is perfect for the app I am working on.

Thanks
Simon.

Tom

Dixie
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1336
Joined: Sun Jul 12, 2009 10:53 am

Re: Visual effects in ide vs mobile

Post by Dixie » Wed Jan 28, 2015 10:10 pm

try this when using visual effects... lock the screen, do what you wish to do and then unlock the screen with your choice of visual effect

Code: Select all

   lock screen for visual effect
   set the visible of image "portal" to false
   unlock screen with dissolve slow

Post Reply