First read this so you dont accidentally suggest something I've already done:
I'm making an air hockey game where the sidewalls and centerline are barriers to player one's mouse (so that you cant go out or into player 2's space... common sense).
I have the hockey stick set to the mouse's location, i have the actual mouse hidden and now im trying to stop it from going out.
I have tried all collisions possible:
if (dbSpriteCollision(14, 15)
{
}
Thats what im putting it in and I have tried:
dbWaitKey()
dbWaitMouse()
dbWait(1000)
dbSleep(1000)
etc.
it all make the mouse stop on the wall (thats great) but it requires a click or keystroke to make it move again.
How do i just make the mouse hit the wall and STOP like a barrier so i cant go outside that space?