Andak
09-22-2008, 08:49 PM
Hello! I'm new to this forum :)
Let's get right to my problem.
OK, so I'm making this flashgame, where you control a ball in the law of physics. The point of the game is to guide the ball from start to end. So I'm making these planks, or boxes which the ball can roll on. On these boxes I run a "hitTestObject" with the ball and set's the ball's speed multiplied with (-1) if it happends. Or, the box is made of four walls and I run a "hitTestObject" on every wall and multiplies (-1) with ball.x or ball.y depending on which wall the ball hits.
This - as you might see - involve alot of programming. Is there any easier way to do this?
I hope I made myself clear!
Greetings
Andak :)
Let's get right to my problem.
OK, so I'm making this flashgame, where you control a ball in the law of physics. The point of the game is to guide the ball from start to end. So I'm making these planks, or boxes which the ball can roll on. On these boxes I run a "hitTestObject" with the ball and set's the ball's speed multiplied with (-1) if it happends. Or, the box is made of four walls and I run a "hitTestObject" on every wall and multiplies (-1) with ball.x or ball.y depending on which wall the ball hits.
This - as you might see - involve alot of programming. Is there any easier way to do this?
I hope I made myself clear!
Greetings
Andak :)