home *** CD-ROM | disk | FTP | other *** search
- function bottlephys(who)
- {
- who._y -= who.Yvel;
- if(who._y < who.ground)
- {
- who.Yvel -= 1;
- }
- else
- {
- who._y = who.ground;
- }
- if(who._x > 125 && who._x < 425)
- {
- if(who._y <= 333 && who.onramp1 != true)
- {
- who.ground = 333;
- who.onramp0 = true;
- }
- if(who._x > 200 && who._x < 355)
- {
- if(who._y <= 290)
- {
- who.ground = 290;
- who.onramp1 = true;
- }
- }
- else
- {
- who.ground = 333;
- if(who.onramp1 == true)
- {
- who.jumping = true;
- who.onramp1 = false;
- who.onramp0 = true;
- }
- }
- }
- else
- {
- who.ground = 370;
- if(who.onramp0 == true)
- {
- who.jumping = true;
- who.onramp0 = false;
- }
- }
- }
- function endPart1()
- {
- function()
- {
- bottlephys(this);
- }
- b = this.attachMovie("bottle","bottle",this.getNextHighestDepth());
- b._x = boss._x + 125;
- b._y = boss._y;
- b.Yvel = 0;
- bottlefall.start();
- b;
- "onEnterFrame";
- }
-