At 12/31/04 02:47 AM, Simon4145 wrote:
i have another question how do i make it so id i press a certain button it makes random stuff fall down this is almost the same as my other question and sorry for being stupid
Ok gets a lil more ocmplicated now, first make a buton, then put this code on it:
on(release) {
a=true;
}
on the frame where the button is put:
a=false;
now put this code on one of your objects:
onClipEvent(load) {
_x=random(400);
_y=random(550);
}
onClipEvent(enterFrame) {
if(a) {
_y+=10;
if(_y<=0) {
this._y=random(550);
this._x=random(400);
}
}
}
I haven't tested it but it should work, let me know how it goes
I have my own question now, the (if(key.isDown)) method is alright but I want to know how you can activate a command if the key is just tapped instead of held down, can anyone help?