Anyway getting to the point, i used a tutorial to help me learn some ActionScript, we aren't talking about normal ActionScript, im using Flash Lite, trying to develop a game for my N95.
The tutorial i used taught me the basics and it all works fine, all ActionScript, BUT i have the ball bouncing off the 'paddle' at the same continuous angle, or the exact opposite, the only time the angle changes is when the game starts where i have the start set to a random number. But on my paddle i want the ball to bounce off at different angles, but i ask how do i do that?!/ lol.
I belive this bit is the section that needs sorting :
This is run as soon as the game is started.
function onBallMove():Void
{
// Move the ball
ball_mc._x += (horizontalSpeed);
ball_mc._y += (verticalSpeed);
of course there is more code to go with it but i thought posting it all was a bit too much, well 230 lines might not be but ah well...The horizontal and vertical speeds are both set to generate random numbers (either 1, 2, 3 or 4), so when the game starts it moves in one of the possible combinations from that, but the same angle is kept throughout until the game is relaunched, haven't managed to get a restart function working yet...
So as you can see i have no idea what so ever
Cheers guys.
{edit} forgot to say its Flash Lite 2.0
Attached Files
Edited by ScottY, 18 June 2007 - 06:54 PM.
