im remaking the game "outlaw" in p5.js with the library p5.play, the problem is that whenever i try using the functions:collided and collides. it dosnt work, heres the piece of code that dosnt seem to be working:
if(player1.collided(bullet2)){
hp1=hp1-1
}
Ive tried changing the order of the variables, like checking the collision of the bullet with the player and the other way around, still it isnt working.