How to detect collisions

What Wick Editor Version are you using?
1.19.3.
Describe the Problem
I would like to know how to detect collisions.
What have you tried so far?
Not, much, I have no experience in this

Welcome to our forums @Or_Ion
[1] Create two drawings to collide
[2] Convert each one to a clip.
[3] Name both of them… like player and enemy for example.
[4] Then, add Timeline/Update code to one of them. It could be for the player…

if ( player.hits(enemy) )
{
// Here the code when they collide…
console.log(“They collided”);
}

Of course, you should add code for them to move…

2 Likes

thanks for the help

And I already have movement code