|
-
hello,
can anyone tell me what the action script would look like if
i wanted to bounce a ball around a shape that looks like this;
______
/ \
/ \
/ \
/ \
/ \
/________________\
i will be thankfull for any help you can give
thanx
Gadgets
-
I guess you could have the ball moving with something like this._y = this._y - 5;, then when it comes in contact with the wall to have it go the other direction:
if (this.hitTest(_root.wallmc)) {
this._y = this._y + 5;
}
I don't know, I'm really tired and haven't tried it, so I guess you could give it a shot. Or you could wait for the Heavyweights to reply.
Just an idea here...
-
Senior Member
Have a look in the flashkit movies section, there are several great examples of bouncing balls, complete with downloadable fla's.
Olorin
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|