At 12/16/06 07:37 PM, UnknownFear wrote:
Well this is weird. The ONLY ground the "player" can be on is the bottom one.
Lol, easily fixed. just put this code inplace of your hitTest part, and lable the grounds: ground1, ground2, ground3, ect.
code:
onClipEvent (enterFrame) {
if (this.hitTest(_root.ground#)) {
_y -= #;
//be sure to replace any # sign with the variable amount
}
}
so acording to how many grounds you have, copy and past that script to the amount of grounds you have (lets say 3). so if we have three ground movie clips you would put:
onClipEvent (enterFrame) {
if (this.hitTest(_root.ground1)) {
_y += #;
//replace # with your speed varible
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ground2)) {
_y += #;
//replace # with your speed varible
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root.ground2)) {
_y += #;
//replace # with your speed varible
}
}
and then rename the instances of your movie clips: ground1, ground2, ground3, ect.
:D fixed.