Page 1 of 1

flip visual and background problem

Posted: Mon Apr 23, 2012 12:48 am
by scotttyang
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?

Re: flip visual and background problem

Posted: Mon Apr 23, 2012 4:09 pm
by jmburnod
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

Re: flip visual and background problem

Posted: Thu Apr 26, 2012 3:35 am
by scotttyang
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

Re: flip visual and background problem

Posted: Thu Apr 26, 2012 7:37 pm
by jmburnod
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

Re: flip visual and background problem

Posted: Sun Apr 29, 2012 5:49 pm
by scotttyang
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...

Re: flip visual and background problem

Posted: Sun Apr 29, 2012 6:48 pm
by Dixie
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

Re: flip visual and background problem

Posted: Mon Apr 30, 2012 1:32 am
by scotttyang
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!

Flipbook Software

Posted: Mon Jun 04, 2012 6:20 am
by thiruppathyma
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!

Re: flip visual and background problem

Posted: Mon Jun 04, 2012 10:18 am
by Dixie
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

Re: flip visual and background problem

Posted: Mon Jun 04, 2012 3:49 pm
by scotttyang
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