Groups with Visual effects

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
JosepM
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 344
Joined: Tue Jul 20, 2010 12:40 pm

Groups with Visual effects

Post by JosepM » Thu Apr 07, 2011 7:47 pm

Hi,

How I must use the visual effects with groups to show the effect only into rect of the group?

Salut,
Josep

BvG
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1239
Joined: Sat Apr 08, 2006 1:10 pm
Contact:

Re: Groups with Visual effects

Post by BvG » Thu Apr 07, 2011 11:27 pm

As far as i know, that is not possible. the effects are always applied for full viewing distance. the only thing to do it, would be to create framing objects on top of the objects with the effects. Note that you can have irregular polygon graphics with holes in them, so a single graphic would probably be enough.
Various teststacks and stuff:
http://bjoernke.com

Chat with other RunRev developers:
chat.freenode.net:6666 #livecode

teacherguy
Posts: 379
Joined: Thu Dec 08, 2011 2:43 am

Re: Groups with Visual effects

Post by teacherguy » Sat Jan 21, 2012 11:24 pm

Visuals work on fields (in my experience so far) but not groups.

richardmac
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 211
Joined: Sun Oct 24, 2010 12:13 am

Re: Groups with Visual effects

Post by richardmac » Sun Jan 22, 2012 12:42 am

If locking the screen won't mess things up, you can do this:

Code: Select all

on mouseUp
   lock screen for visual effect
   show group "my group"
   unlock screen with visual effect dissolve
end mouseUp

teacherguy
Posts: 379
Joined: Thu Dec 08, 2011 2:43 am

Re: Groups with Visual effects

Post by teacherguy » Sun Jan 22, 2012 2:16 am

Doesn't work for me :?

Jellicle
Posts: 453
Joined: Thu Feb 24, 2011 11:07 am

Re: Groups with Visual effects

Post by Jellicle » Sun Jan 22, 2012 5:17 am

Does "show group "Fred" with visual effect dissolve" not work?

Gerry
14" MacBook Pro
Former LiveCode developer.
Now recovering.

teacherguy
Posts: 379
Joined: Thu Dec 08, 2011 2:43 am

Re: Groups with Visual effects

Post by teacherguy » Sun Jan 22, 2012 6:28 am

Correction: Upon deleting the app from the simulator and re-loading, both the methods above work. Thank you!

teacherguy
Posts: 379
Joined: Thu Dec 08, 2011 2:43 am

Re: Groups with Visual effects

Post by teacherguy » Sun Jan 22, 2012 4:47 pm

Note: I noticed that if I am trying to use the "flip" effect, and I omit the word "with" then the flip takes place for the entire card, not just the image or group. So be sure to use

Code: Select all

show image "whatever" with visual effect flip right
if you are using the code in-line.

Post Reply