Ok, now I'm really lost. Can you please give me a code snippet or something of a basic collision test?
And also, is it supposed to be kind of like this?...
function Tick(runtime)
{
const player = runtime.objects.Player.getFirstInstance()
const ground = runtime.objects.Ground.getFirstInstance()
const sprites = runtime.objects
for(let i = 0; i === sprites.length; i++) {
if (sprites[i].uid === 2) {
if (player.testOverlap(ground)) {
console.log('Hit')
}
}
}
}