ActionScript 2.0 :: Paddle Won't Move In Pong Game?

May 3, 2005

I have attached my FLA & I was just wondering if anyone out there could tell me how to make it so that my paddle will move so that the pong game is playable.

View 4 Replies


Similar Posts:


ActionScript 2.0 :: Pong - Make The Ball Move And Bounce Around The Stage And Paddle

Oct 29, 2003

how to make the ball move and bounce around the stage. and i also need help on the paddle that the ball bounces off of.

View 11 Replies

ActionScript 3.0 :: Creating A Pong Game ?

Sep 28, 2011

how to create a Pong game: http:[url].... There's a link to the source code: http:[url]...file=pong4.txt.When I add the source code to a new AS file (using Flash CS 5.5), save it as "Main.as", create a new Fla and link it in the actionscript settings to the Main.as and run it, I get errors:

C:UsersxxxDesktopP4Main.as, Line 1171093: Syntax error.C:UsersxxxDesktopP4Main.as, Line 1171084: Syntax error: expecting rightparen before 270.C:UsersxxxDesktopP4Main.as, Line 1211093: Syntax error.C:UsersxxxDesktopP4Main.as, Line 1211084: Syntax error: expecting rightparen before 270[code]....

View 2 Replies

Php :: What Technology Can Be Used For This Browserbased Ping-pong Game

Jun 6, 2011

I just saw the McDonald's commercial which I have linked to below and I would like to try developing something similar for a festival. We have been talking about making a game in which the user has to use their iPhone and something like what McDonald's has done would be great.My question is if anyone have an idea how I can send the data and what technology they might have used? I imagine making two websites. One on which the game itself is shown and one which is the controller but how would I make sure that the data is sent and handled fast enough?I am familiar with JavaScript and PHP. I have been working a bit with flash and ActionScript and I am wondering if that might be best for the game (obviously not the controller)You can see the McDonald's commercial on the link below. Basically, the user visits a webpage which is the controller and then they are able to play the ping-pong game on the big screen.

View 4 Replies

ActionScript 2.0 :: Pong Game - How To Fit All Bricks In Area (120 X 600)

Apr 22, 2005

I am using the pong game tutorial, with all of the actionscript and it is all working except I have one problem I am making it a different size...I want it to fit in a 120x600 area and the ball and bar and game arena are all fitting in there, however, when I put the bricks in there they line up to the old arena. So basically about half of the bricks fit into the playing area and half of them don't, the bricks are also too big. How to make all of the bricks fit in the area of 120x600?

View 2 Replies

ActionScript 2.0 :: Fit Pong Game In An 120x600 Area?

Apr 22, 2005

I am using the pong game tutorial, with all of the actionscript and it is all working except i have one problem I am making it a different size...I want it to fit in a 120x600 area and the ball and bar and game arena are all fitting in there, however, when I put the bricks in there they line up to the old arena. So basically about half of the bricks fit into the playing area and half of them don't, the bricks are also too big...Does anyone know how to make all of the bricks fit in the area of 120x600?

View 2 Replies

ActionScript 3.0 :: Computer Vs Computer Pong Game

Apr 2, 2009

I'm not really good with AS3 yet so maybe somebody can help meI found a pong game tutorial and it works fine.[code]Now I want that two computers play against eachother.So no player input only two computer that play.I tried a lot with the script but it doesn't work.

View 3 Replies

ActionScript 3.0 :: Pong Game Computer Vs Computer

Apr 14, 2009

I have a problem... I found a tutorial making a pong game... I want to make some changes but I tried everything but it wont work Here is some code:

[Code]....

View 2 Replies

Flash - Paddle Movement Using Box2D?

Jan 3, 2011

I'm making a game like Arkanoid and to move the ship with mouse, I'm using the following code :

var mousex:int = costume.stage.mouseX;
if (mousex < paddleWidth/2)
mousex = paddleWidth/2;
else if (mousex > PhysiVals.STAGE_WIDTH - paddleWidth/2)

[code]....

Everything's going fine there! The paddle is moving the way it should! The problem is I want a little inclination towards the direction its moving and when it stops moving the angle of inclination should become zero.

View 1 Replies

ActionScript 2.0 :: Ball Bouncing Off Paddle?

Nov 3, 2006

im was wondering if anyone knows the script for a ball bouncing off a paddle. I want the ball to bounce off the paddle in different directions depending on:

1) which side of the paddle it hits

2) which direction it came from

Ive only got this so far : script for the paddle

onClipEvent(enterFrame)
{
if (this.hitTest(_parent.ball)) //if this movieclip hits the movieclip 'ball'
tellTarget(_root.ball) //tell the ball to:[code]....

View 1 Replies

ActionScript 2.0 :: Cant Get Ball To Bounce Off Of Paddle At Correct Angle

Apr 28, 2004

The game is like any other pong game with one differance. Rather then the paddle only moving left and right, it would move in a circle around the play field and you would not be able to rely on the walls to keep your ball in play. My problem is that I cant get the ball to bounce off of the paddle at the correct angle. Below is a link of the swf and fla that I have now.[code]

View 7 Replies

ActionScript 2.0 :: Unable To Move To Next Scene In Flash Game

Jan 28, 2012

I've used one of the hangman source code online and i couldn't get it to work. I want to move from hangman 1.2.1 to hangman 1.2 but i can't do that because the button just won't work. By the way, i'm using adobe flash cs5.URl...this is the original source code.URL...i need some reply asap as my project submission is due 3 days later.

View 4 Replies

Actionscript 3 :: OOP - Make An Object Move Across A Game Board Depending On The Value Of The Dice?

Dec 8, 2011

I am creating a board game and I am using Object Oriented Programming with AS3. I created a movie clip with a circle that moves across the game board. There are 18 squares and 18 frames. I have a button that gives you a value with a dice with the random number function:

public function rollDie():void
{_dieValue = Math.ceil(Math.random()*6)
this.gotoAndStop(_dieValue);}

I have a class for the dice button, die, gameboard, and the main board. I am trying to make the circle move across the board(or go to the frame in the mc) depending on what the value I get with the dice. Here is my code so far:

[Code]....

The mc instance for the gameboard is gameBoard. Also, if anyone knows how to trigger a labeled frame depending on which square the circle lands on that would be a plus.

View 2 Replies

ActionScript 2.0 :: Keyboard Movement - Get The Characters In Flash Game To Move Diagonally

May 7, 2005

I'm trying to get the characters in this Flash game to move diagonally - it works, but the following occurs: The character is walking twice as fast as it does when going left, right, up, downThe walking animation doesn't play PHP Code:

[Code]...

View 11 Replies

ActionScript 3.0 :: Errors In A Game - Move A Frog In X Axis To Catch The Falling Flies

Jul 24, 2010

I'm trying to do a simple game in which you have to move a frog in X axis to catch the falling flies. sorry if I mistake some words cuz I talk in spanish It's already done, but it has 2 bugs and I dunno what the reasons are

The 1st bug, Each time the game is over, and you click in "PLAY AGAIN ", I could notice that the frog movement (which you can move by pressing the keys) is increased a little; for example if you played 6 times the 7th you can reach the opposite side by pressing the corresponding key 2 times, despite the fact that in the code i did write only +15px for the right when you press right arrow and -15px for the left when you press the left one (on X axis) for each time the key is pressed

[Code]....

View 3 Replies

ActionScript 3.0 :: Snooker / Billiard Flash Game - Make The Stick Move With The Center In The Point Near The Ball

Feb 26, 2010

I need to build a flash learn game to my students. It is to explain the angles and phisics over the billiard/snooker Table. Something similar to this: [URL] The only thing I can do until now is drag the ball! My doubts are:

- How to make the stick move with the center in the point near the ball;
- How to draw the yellow line;
- How to calculate the corners;
- And in the last, how to move the ball with accelerated motion when press a button.

View 1 Replies

ActionScript 3.0 :: Breakout Game - Make The Ball Move Fast Without Sacrificing The Accurate Detection Of Collisions?

Oct 27, 2010

I am making a breakout type game where you bounce a ball around and it hits & breaks blocks.The issue im having is with handling the ball after a collision is detected.Every frame the ball checks four points on its surface to see if they are colliding with any of the blocks. The problem occurs when the ball starts moving fast. The ball's radius is 7 pixels. If it is moving upwards at higher than7 px/ frame, then the ball might end up half way into one of the blocks.

In that case the ball detects a collision on its top AND on its side (which is bad -- If the ball is travelling upwards it should detect the collision at the top of the ball)how I could fix this so that I can make the ball move fast without sacrificing the accurate detection of collisions??

View 5 Replies

ActionScript 3.0 :: Working On A Basic, Horizontal Shooter Platform Game - Make Enemies Move Smart, Towards The Player?

Oct 3, 2011

i am an newbie as3 developer, and i am working on a basic, horizontal shooter platform game.and my question is: how can i make enemies move smart, towards the player? ( but ofcours you are in able to dodge)so like, an enemy is moving to me so when i am not dodging, it will hit the player.

View 2 Replies

ActionScript 3.0 :: Basic 2D Game "camera" - Move The Character Using The Keyboard?

Jul 27, 2009

Everything going well so far except for camera control. I want the character to always be in the center of the screen. only when the side boundaries are reached, the character should leave the center of the screen to be able to reach the sides of the screen.Somewhat like this: http:[url]....I've tried 2 ways but both without succes:

- move the character using the keyboard, but somehow keep it in the center of the screen (have no idea on this one)

- move the entire area except the character to simulate movement.

This seems kind of ineffeciant but it worked out better that the previous attempt, the only problem is that the character doesn't return to the center of the screen when he leaves the boundary.The .fla's are available for download here http:[url]....

the actionscript is all in the first frame.try not to be too hard on the crappy visuals Ignore the comments too, theyre only there to help me understand what I did.The boundaries seem to be a bit sketchy aswell when moving to the sides, but that's not a big problem right now.

View 4 Replies

Professional :: Move Over Lines - On "lineout", Game Over?

Apr 20, 2010

I'm looking for the code in AS 2 on how the cursor can move over a line (an object). So the user needs to move the cursor over that line. If he moves out of the line-area, he fails. It's a bit like that classic game we played as a child in our colouring books,

View 8 Replies

Android :: Cross Platform Game - IOS : Develop A Very Simple Game For Iphone/ipad?

Mar 7, 2012

I am going to develop a very simple game for android and for iphone/ipad I have the option to develop it in cocos2d or in adobe flash air (i am not a developer, but i have 2 developers who are offering me the service)I have a developer that states that cocos2d is better and other one that states that adobe flash air.I want it in cross platform.the cost offered by both developers is the same..i have heard that adobe air has the flaw that it is very slow, is this real? if you had the 2 options which will you use to develop your game and why?

View 1 Replies

ActionScript 3.0 :: Game That Populates User-designed Cards Into The Game Using An External Xml File

Apr 24, 2011

I'm making a game that populates user-designed cards into the game using an external xml file. My main class loads the xml file and then calls to the "Card" class, which wants to use the xml file. I've tried using this.parent and it just gives me a null object reference error. This is what I have so far: Main.as

[Code]...

View 2 Replies

ActionScript 3.0 :: Making Game And Objects Would Spawn At Random And Be Able To Click But When De Game Starts Itself

Jul 4, 2010

currently i making this game and objects would spawn at random and be able to click but when de game starts itself, the spawn is correct but i am unable to make it stop when time goes to 0seconds.

View 1 Replies

ActionScript 3.0 :: Flash - Writing A Simple Game Rule For A Platform Game?

Feb 28, 2011

I'm creating a game at the moment for my university course and it involves the player character jumping on top of boxs twice to break them as opposed to just once.What would be the most efficient/simple way of writing this in Actionscript 3.

View 1 Replies

ActionScript 3.0 :: Mahjong - Levels Of Blocks In Game - Layouts Of The Game Should Be Predefined Or They Should Be Dynamically Created?

Aug 3, 2011

I have recently started working with Mahjong game. But being not so experienced developer. I am just confuse about many aspects of it. So if anyone could throw some light on it. I have to build the game where there could be different number of tiles on screen. 32, 48, 64 , 80, 96, 112 and so on Now I have questions regarding the levels of blocks in this game. I mean the layouts of the game should be predefined or they should be dynamically created? Also I wanted to know how the surface of enable and disable symbols are created?

View 2 Replies

ActionScript 3.0 :: Make A Game, And The Character Inside The Game Could Swim

Jun 13, 2009

I was trying to make a game, and the character inside the game could swim. However, I only wanted him to swim in short bursts that refueled every time he hit the ground.

View 9 Replies

ActionScript 3.0 :: Making A Game Like Pokemon Trading Card Game?

Jul 23, 2010

im trying hard to make a Game like the Pokemon TCG .

View 2 Replies

Flex :: 2d Game Engine For Race Game Built To Webpage?

Nov 19, 2009

I think Flash/Flex is a good aproach for this case.We need to build some like the following

View 2 Replies

Actionscript 3 :: Flash Game Engine Selection Of An Awesome Game?

Dec 14, 2011

I am thinking of developing of a game like this: [URL]... Do you have any idea - by which game engine I may develop this type of games? I am not sure whether I have to use any 3d physics engine? I think JiglibFlash may be useful, but I am not sure.

View 1 Replies

ActionScript 2.0 :: Get The Move And Zoom To Be Smooth So The Users Can See It Move Across The Screen Then Gradually Get Bigger?

Apr 11, 2004

tutorial where when you click on a movie clip it moves to a certain location on the page and then zoom in and makes it a certain size. Also i want it to move back to its original location if you click it again.I want the move and zoom to be smooth so the users can see it move across the screen then gradually get bigger.

View 5 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved