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 »

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 »

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 »

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 »

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 »

Doesn't work for me :?
Jellicle
Posts: 453
Joined: Thu Feb 24, 2011 11:07 am

Re: Groups with Visual effects

Post by Jellicle »

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 »

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 »

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