public void start(Window callingWindow) { if (JT01.CollideAgainst(path1)) { // perform action JT01.XVelocity = 1; } if (JT01.CollideAgainst(path2)) { // perform action JT01.XVelocity = 0; <<<<<<<<<<<<<<<<<< // instead of 1, but it's still moving } if (JT01.CollideAgainst(path3)) { // perform action JT01.XVelocity = 1; } if (JT01.CollideAgainst(wood)) { // perform action JT01.XVelocity = 1; } }