sdfsdfdsfsda I am new to AS but trying to control my MC to move up and down. it’s working but i want it to stop at a point so it doesn’t go to high and stop at a point where it doesn’t go too low
I got this so far
moveUp.onPress = function() {
gtr_MC.onEnterFrame = function() {
this._y -= 1;
};
};
moveUp.onRelease = function() {
delete gtr_MC.onEnterFrame;
};
moveDown.onPress = function() {
gtr_MC.onEnterFrame = function() {
this._y += 1;
};
};
moveDown.onRelease = function() {
delete gtr_MC.onEnterFrame;
}
i not too sure i was trying to search the forum
I’m thinking something like this
if (this._y = 0)
then…??? delete gtr_MC.onEnterFrame;
Can anyone please give me directions
i’m using AS 1.0 -2.0
Thank you all you coders out there
Anyone? Please