Ask coding questions

← Back to all posts
area is not not working kaboom.js
h
Kingq23

I don't know why this is not working

Answered by Coder100 [earned 5 cycles]
View Answer
Voters
Kingq23
Comments
hotnewtop
Coder100

vec2 takes 2 arguments. The x value and the y value relative to the position of the object.

So, you should have something like this:

just an example, tweak the numbers and use the debug to get your area collisions correct.