Opacity problem

Fill this out this info to make it easier for the community to help you! If you don’t fill out this information, your post may be deleted or removed.

What Wick Editor Version are you using?
Ex. 1.18. You can find this on the splash screen when the editor opens.
1.19.4
Describe the Problem
What issues are you having in the Wick Editor?
when the opacity drops to zero it goes to another frame.
What have you tried so far?
Have you attempted anything et to fix the problem? Let us know!
i have tried coding it and now asking on the forums
Do you have a Wick Editor File that we can see? Optional*
Attach a .wick file if you have one in progress that can help us help you!
tower2004-8-2021_11-02-16.wick (195.6 KB)

Here’s the code you had:

if (this.opacity = 0));
gotoAndStop(2)

It’s slightly incorrect because you have an extra “)” and one “=” along with an unnecessary semicolon. Here’s what you need to replace that with:

if(this.opacity===0)
gotoAndStop(2);

Side note, one “=” is used for setting two things equal to each other
And “===” (3 equal signs) is used to see if two things are equal to each other.
2 equal signs check if two things are the exact same

I like to translate it this way:
=” (1 equal sign) = “[…] equals […]” (1 word) Ex: variable equals 5
==” (2 equal signs) = “[…] is exactly […]” (2 words) Ex: if 5 is exactly 5…
===” (3 equal signs) = “[…] is equal to […]” (3 words) Ex: if 5 is equal to “5” …

1 Like

wait this doesn’t work

Oh, I probably should’ve mentioned that you need to move that code to the update script

Here’s a file: tower2004-8-2021_18-21-06.wick (195.6 KB)
(I also added some code to reset position and opacity for some stuff)

Let me know if this is what u needed

oh okay, thanks alot!

1 Like