Page 1 of 1

Visual Effects not working.

Posted: Tue Feb 15, 2011 3:03 am
by dburdan
I am trying to use a push visual effect to transition between cards but it only works once. If I hit the button more than once it only uses the effect the first time. Here is my code:

Code: Select all

on About
   lock screen
   visual effect push up
   go to stack "About"
   unlock screen
end About

on BackToMenu
   lock screen
   visual effect push down
   go to card "MainScreen" of stack "Card Shark"
   unlock screen
end BackToMenu

Re: Visual Effects not working.

Posted: Tue Feb 15, 2011 9:40 am
by Dixie
Hi....

I think that the problem here is that the visual effects are for transition between cards, not stacks. There is a way around this. I created two stacks of the same size... 'About' and 'Shark'...

In button on a card in stack 'shark', I placed :-

Code: Select all

on mouseUp
   visual effect dissolve
   go stack "about" in the window of stack "shark"
end mouseUp
and in a button on a card in stack 'About' :-

Code: Select all

on mouseUp
   visual effect dissolve
   go stack "shark" in the window of stack "about"
end mouseUp
I just switched the stack names around...

be well

Dixie

Re: Visual Effects not working.

Posted: Tue Feb 15, 2011 12:14 pm
by Klaus
Hi DAn,

yes, Dixie is right, "visaual effect" will only work in one window!
AND please leave out the "lock/unlock screen" lines or you will NOT see any effect 8)


Best

Klaus

Re: Visual Effects not working.

Posted: Tue Feb 15, 2011 6:17 pm
by dburdan
Ok thanks guys!

Re: Visual Effects not working.

Posted: Tue Feb 15, 2011 9:17 pm
by banjobill
Hi

I thought I'd mention that if you do need to use 'lock screen' then you can 'unlock' the screen with a visual effect e.g.

Code: Select all

on mouseUp
lock screen
//do stuff
unlock screen with visual effect dissolve
end mouseUp
Regards

Bill

Re: Visual Effects not working.

Posted: Sun Mar 20, 2011 10:34 pm
by Jellicle
I'm getting script errors when i try use visual effects. The scripts refuse to compile with the error "compilation error at line 2 (Expression: unquoted literal), char 10"

What gives?

Re: Visual Effects not working.

Posted: Sun Mar 20, 2011 10:59 pm
by Klaus
Hi Jellicle,
Jellicle wrote:I'm getting script errors when i try use visual effects. The scripts refuse to compile with the error "compilation error at line 2 (Expression: unquoted literal), char 10"
What gives?
well, we can't tell until we see your script! 8)


Best

Klaus

Re: Visual Effects not working.

Posted: Sun Mar 20, 2011 11:17 pm
by Jellicle
Hahaha I guess not. Fixed it anyway - apparently you need to put quotes around the actual effect name. The documentation doesn't mention that...

Re: Visual Effects not working.

Posted: Mon Mar 21, 2011 1:55 pm
by Klaus
You shouldn't need quotes around the names of visusl effects!
Please post your code, if possible!


Best

Klaus