Wick Crashes When I do A line of code

When I put a line of code (this.parent.remove), Wick just crashes.
Crashing like, wick is a white… screen…

you need to type “remove()” instead of just “remove”. maybe that’s why.

oh yeah i forgot to put in the topic ( this.parent.remove() ) but when i did that it crash

It should be only
parent.remove();

Here an example…
RemoveParent10-19-2020_5-54-11PM.wick (2.5 KB)

1 Like

Just wanted to add that the reason Wick was crashing for you was probably because you were unintentionally trying to remove a frame, not an object. As an example, if I have a blue square clip on a frame named “test”, like this:
wicksquare1
And then I put in this alert statement to try to get the name of the blue square’s parent:
wicksquare2
I get this in response:
wicksquare3
It returns “test”, the name of the frame. So using this.parent will give you the frame that an object is stored on, not the object it’s stored inside of. Confusing, but that’s how it is.

Wow, even though this is non-standard, it shouldn’t crash like that! Thank you for reporting!

2 Likes

your welcome

nexts we can make a virus doing this

bruh lmao,

https://www.youtube.com/watch?v=bX1KG_VLuFU lol wick is hack us