Sunday, May 2, 2010

Saved latest edits for



Steel car game:














Notes:

for steelcargame_disapering drive thru girl reference2. which will be saved in mow966@yahoo.com

when key is dropped on balloon, the invisible animation
of the block on this frame starts its animation. and when
you get to the car frame..the animation is complete but
visible. you could use this for the girl in the drive thru.
Like the balloon, when the milkshake is clicked, the
invisible animation of the girl (which is
also on the table frame but its apha is set to zero. the visible and invisible girls are separated by keyframes but still the same continueing object) starts to animate where it
will be foating around the unseen edges of the table frame
and the drive thru frame until she floats back into place blocking
an item. Remember you have to put the code frome crate_mc in the
girl to give her "blocking" power. Also instead of doing all this you
can try just making a code like the key by clicking on milkshake...it
will make girl dissapear.



script in actions layer:

stop();


cursor_mc.onEnterFrame = function(){
this._x = _root._xmouse;
this._y = _root._ymouse;
}
cursor_mc.startDrag("true");
Mouse.hide();


key_mc.onPress = function(){
startDrag(this);
}
key_mc.onRelease = function(){
stopDrag();
}

crate1_mc.onRelease = function(){
stopDrag();
}
greenballoon_mc.onRelease = function(){
stopDrag();
}
redballoon._visible = true;
// Drag a piece of garbage.
key_mc.onPress = function() {
this.startDrag(false);
};


// When the garbage is dragged over the trashcan, make it invisible.
key_mc.onRelease = function() {
this.stopDrag();

// Convert the slash notation to dot notation using eval.
if (eval(this._droptarget) == greenballoon_mc) {
greenballoon_mc._visible = false;
key_mc._visible = false;
redballoon._visible = true;

gotoAndStop("redballoonframe");
}
};

script in stage key:




onClipEvent (load) {
this.tabEnabled = false;
if (_global.keystage_mc == 1) {
this._visible = false;
}
}
on (release) {
_global.keystage_mc = 1;
this._visible = false;
_level0.key_mc._visible = true;
}




script in inventory key:
onClipEvent (load) {
this.tabEnabled = false;
this._visible = false;
}
onClipEvent (load) {
this.tabEnabled = false;
this._visible = false;
orig_x = this._x;
orig_y = this._y;
}
on (press) {
this.startDrag();
}
on (release) {
this.stopDrag();
this._x = orig_x;
this._y = orig_y;
if (eval(this._droptarget) == _level0.balloon.balloon) {
_level0.balloon.gotoAndStop(61);
_level0.balloon.balloon.gotoAndPlay(2);
_global.b_pop = 1;
this._visible = false;
}
}