My collision detection works perfectly except for when the character collides with the border. I want the character to respawn, so I implemented this code:
left = 10;
var reLeft = {'left':left + "px"};
$('#char').css(reLeft);
top = 10;
var reTop = {'top':top + "px"};
$('#char').css(reTop);
Unfortunately, it doesn't seem to be doing anything when the character collides with the border.