Ball Bounce V2

by e VIlAGRA m

in Works in Progress

< 'Actionscripted Bouncing Ball (v3)' by e VIlAGRA m
> 'Bouncing ball' by e VIlAGRA m

Description

Oct 23rd 2008
Tags:
actionscript ball bound experimental
Views:
54
Comments:
5
Score:
0
Favorites:
0
Still haven't worked out all the bugs yet, but it works a lot better.

I need to find out why it slides through the floor, and find a fix of some type.

Comments

POPAROCKA Says:

If this school computer wasn't a major peice of **** I'd probably say awesome although this looks intersting nice work from what I see, left me going huh...

Shadow Dinosaur Says:

The movement, Looks good!

Zielak Says:

It slides down probably because you didn't made it's speed go 0 when it's like from -0.2 to 0.2 when we can't see that much of the motion and the surface is horizontal.

White Wing Demon Says:

I'm thinking, since I don't know exactly how you programmed it, but as it bounces less, gravity has more of an impact. So if you're resetting the ball's position statically, then eventually it will slide through. Perhaps if instead of resetting it to a position, find the difference between the bottom of the ball and the top of the pad, and add that to the ball's x.

Just an idea.

Pal X Says:

The ball's speed never reaches zero. You should make that it can reach absolute zero and then from there cancel the gravity force.

Kinda something like this:
if (ball.speed = 0)
{
ball.gravity = 0
}

I don't remember how to work with variables anymore but I think it was something like that.