krulos
04-15-2009, 02:57 PM
Hello everyone I have a small problem.. not sure how to fix it.
I have a game where there is pieces defined within an array. When they hit the bottom of the stage they stop. What im trying to do is when the pieces hit the ground theynow become part of the bottomwall
if (pieces[i].hitTestObject(bottomwall_mc)) {
pieces[i].y --;
}
Is there a way to define the piece when it hits the ground.. like when it hits the ground.. it now becomes bottomwall_mc as well - so other pieces can stack on top of them now.
thanks :)
I have a game where there is pieces defined within an array. When they hit the bottom of the stage they stop. What im trying to do is when the pieces hit the ground theynow become part of the bottomwall
if (pieces[i].hitTestObject(bottomwall_mc)) {
pieces[i].y --;
}
Is there a way to define the piece when it hits the ground.. like when it hits the ground.. it now becomes bottomwall_mc as well - so other pieces can stack on top of them now.
thanks :)