All pastes #898251 Raw Edit

Untitled

public text v1 · immutable
·published 2008-02-10 05:01 UTC
rendered paste body
  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;
            }
         
        }