Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (object.getRect(stage).containsRect( this.getRect(stage) ))
- {
- collision = true;
- }
- if (collision)
- {
- while (collision)
- {
- this._playervY = 0;
- this.y -= 1.1;
- collision = false;
- if (object.getRect(stage).containsRect( this.getRect(stage) ))
- {
- collision = true;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement