okay well yes i did make my platform move up and down but when the hero jumps on it he falls right through it like it isnt even there.. i have this code in the platform
onClipEvent (load) {
velocity = 3;
}
onClipEvent (enterFrame) {
var y;
y = _y-velocity;
if (y>260 || y<105) {
velocity = velocity*-1;
}
_y = _y-velocity;
}
and this code on the frame of the platform
maxPlatforms = 0;
for (i in this) {
if (typeof (eval(i)) == "movieclip" && substring(i, -10, 5) == "platf") {
maxPlatforms++;
}
}
stop();