flip visual and background problem

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
scotttyang
Posts: 125
Joined: Sat Jan 31, 2009 12:01 am

flip visual and background problem

Post by scotttyang » Mon Apr 23, 2012 12:48 am

any solution to this. going to flip an object with visual flip right, but the background of the object goes gray instead of maintaining the background

on mouseup
hide image a
show image a with visual effect flip right
end mouseup

but a gray cutout is noted instead of a eg. blue background color....

any ideas?
Last edited by scotttyang on Thu Apr 26, 2012 3:35 am, edited 1 time in total.

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: flip visual and background problem

Post by jmburnod » Mon Apr 23, 2012 4:09 pm

Hi,

Code: Select all

show image a with flip right 
dont work for me but

Code: Select all

flip image a horizontal
work

Best regards

Jean-Marc
https://alternatic.ch

scotttyang
Posts: 125
Joined: Sat Jan 31, 2009 12:01 am

Re: flip visual and background problem

Post by scotttyang » Thu Apr 26, 2012 3:35 am

The flip works well in terms of flipping images, but looking for a way in VISUAL EFFECTS on iOS systems that (Visual effect flip right) that doesn't show the gray background of the card. If I had a photo background and I want to flip an image in front of it, I would like only the foreground image flip in "show image x with Visual Effect flip right" without the cut out background.....may be not possible yet with 5.5

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: flip visual and background problem

Post by jmburnod » Thu Apr 26, 2012 7:37 pm

Sorry,
I haven't understood your problem.

Maeby you can try this

Code: Select all

on mouseup
   hide image "a"
   lock screen for visual effect
 show image "a" 
   unlock screen with visual effect flip right 
end mouseup
Best regards

Jean-Marc
https://alternatic.ch

scotttyang
Posts: 125
Joined: Sat Jan 31, 2009 12:01 am

Re: flip visual and background problem

Post by scotttyang » Sun Apr 29, 2012 5:49 pm

The best way to describe a visual is a picture! see the attached. The coffee cup is a .png file that that is a photo object with transparent background. but the Visual Effect Flip right cuts out the background when flipping. This is from the iOS simulator. Therefore when making a game where one wants to to flip a flashcard over, the cut out background doesn't make the visual effect very pretty! any thoughts? or will just have to do a work around...
Attachments
visual flip cutout.png
visual flip cutout.png (40.88 KiB) Viewed 6927 times

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

Re: flip visual and background problem

Post by Dixie » Sun Apr 29, 2012 6:48 pm

scottyang...

If the bacground of the image of the coffee cup is white, you could try setting the background colour of the stack to white... that should help to 'mask' the transition at the same time as making it pleasing... if you understand what I mean..:-)

be well

Dixie

scotttyang
Posts: 125
Joined: Sat Jan 31, 2009 12:01 am

Re: flip visual and background problem

Post by scotttyang » Mon Apr 30, 2012 1:32 am

hi Dixie,

I'm using a PNG file so it the coffee cup has a transparency with shadow. Maybe Livecode isn't meant to flip transparent backgrounds in iOS!

thiruppathyma
Posts: 1
Joined: Mon Jun 04, 2012 6:17 am

Flipbook Software

Post by thiruppathyma » Mon Jun 04, 2012 6:20 am

The flip works well in terms of flipping images, but looking for a way in VISUAL EFFECTS on iOS systems that (Visual effect flip right) that doesn't show the gray background of the card. If I had a photo background and I want to flip an image in front of it, I would like only the foreground image flip in "show image x with Visual Effect flip right" without the cut out background.....may be not possible yet with 5.5!
Last edited by heatherlaine on Wed Aug 09, 2017 10:24 am, edited 1 time in total.
Reason: removing link

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

Re: flip visual and background problem

Post by Dixie » Mon Jun 04, 2012 10:18 am

Hi...

To get rid of the grey background as you 'flip'... try setting the backgroundcolor of the stack to a colour that pleases..

be well

Dixie

scotttyang
Posts: 125
Joined: Sat Jan 31, 2009 12:01 am

Re: flip visual and background problem

Post by scotttyang » Mon Jun 04, 2012 3:49 pm

The workaround for me was the background color went to complete black. Your foreground image at least the "background" of your foreground image has to be black also. Other colors such as white, gray, doesn't work well. Doesn't look nice. So Black is your best bet.

Scott

Post Reply