All pastes #898206 Raw Edit

button code

public text v1 · immutable
·published 2008-02-10 04:07 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 = 1;
            }
            if (JT01.CollideAgainst(path3))
            {
                // perform action
                JT01.XVelocity = 1;
            }
            if (JT01.CollideAgainst(wood))
            {
                // perform action
                JT01.XVelocity = 1;
            }
            else
            {
                JT01.YAcceleration = -1;
            }
        }