Editing project in an html file 🥴

Untitled_ Sep 18, 2020 5_57 PM

First Time I Found this gLiTcH

And now this is the third time I come by this lag, but this time, although I’m the only one on Wick that’s getting this glitch, I ACTUALLY HAVE PROOF! Here, a file:
My Project - 2020-09-18T175642.382.html (2.2 MB)

Open this file, and you should be able to move the clips around without being in the editor!
Idk how this happened, but it happened after I made this coding mistake:

I typed:
if(project.p13===null){ }else{ this.remove(); }
The “this.remove()” referred to a website intro that was meant to be removed if the player already had used the website before (and has data stored on it). The mistake that I made was that I had in one of my scripts that if the value of p13 was “null” (as in the user had nothing saved on this web), the value of p13 would be equal to " " (nothing). The intro was a bit complicated and had around 40 clips maybe (I didn’t really count), and the website didn’t know if to remove it or not, because the same time p13=null, it was equal to nothing.


Hey, if u test the html file, let me know if u got the same results as me
(when u test it, it might look normal, but try to drag things around with ur cursor.
To choose another object, right click, then try choosing another one)

I have absolutely no clue what you did there, sorry can’t really help you :woozy_face:

No worries, I found my mistake, but remember that one time when a project was acting weird and you found out that it was the “remove()” thing that made it lag?

Well, this seems to be a related error. I wasn’t using the object’s name in any code other than inside of a clip inside of the object itself. When the object was removed, I guess it tried to take me back to the editor and throw me an error report or something, I really don’t know.

1 Like

This happened to me but in the editor while I was running the project

Hey @Hamzah_Alani, could you please send over the .wick file?

There should be a safety measure that makes this impossible, but somehow the this project doesn’t know it is being published! (Shown to a user…)

Very strange!

Hopefully this helps:
My Project9-21-2020_9-49-52AM.wick (154.1 KB)

I solved the problem by deciding to not remove the object only when it’s opacity is zero, that seemed to work