lil boi blue -> RE: Flash help and tutorials, checked daily (3/11/2006 14:36:48)
|
what the script is for is when you use different music in the same film, http://i5.photobucket.com/albums/y158/photo12/oddmix.swf i made a new dynamic pic of odd matches ice w/ fire. quote:
ORIGINAL: lil boi blue balls name bob in the instance box down in the properties tab, now on the stage, make a line the same color as your background and make it a movieclip and give it the instance name Uwall and place it in the sky where you want the top of your ball to stop moving up, give your ball who's name is now bob this code or add it on onClipEvent (load) { moveSpeed = 20; } onClipEvent (enterFrame) { if (Key.isDown(Key.RIGHT)) {this._x += 20;} else if (Key.isDown(Key.UP)) {this._y -= moveSpeed;} else if (Key.isDown(Key.DOWN)) {this._y += moveSpeed;} else if (Key.isDown(Key.LEFT)) {this._x += -20;}} onClipEvent (enterFrame) {if (this.hitTest(_root.Uwall)) {_y = _y+20;}} 20 is how fast the guy goes so if you change the movespeed you'll have to do the same for the _y=_y+20 thing, also if that doesn't work make sure that 1)the uwall is in the sky not the earth, 2)switch the {_y = _y+20;}} to {_y = _y-20;}} 3)prey to god or whoever you believe in/dont believe in do you know what i mean by instance names? and for the part so that he cant walk on grass i forgot how to make it so that it doesn't err...well so that the guy stops when he hits the diagonal line not space it takes up in a transform box, sure some other actionscript gurus here know, im all about art, know little AS
|
|
|
|