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


Similar Posts:


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 :: 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 :: 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

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

Actionscript 3.0 :: Adding Bricks On Stage?

Mar 30, 2010

im trying to add bricks to the stage using the document class and i have become stuck on this.. dont know how to figure it out.and i need the ball to hit the brick and then the brick disappears, main thing is i need the ball to hit the brick..im not here to tell someone to do it for me just guidance here is the coding so far i have done

Breakout.as
Code: Select allpackage {
import flash.display.*;

[code].....

View 14 Replies

ActionScript 2.0 :: Unable To Get The Bricks To Function?

Dec 25, 2005

I'm having issues with the bricks on the pong out game... not sure why they aren't loading into the Map or leaving the screen when the ball hits it.

I tried to write the script pretty much word of for to get the game to work then I figured I would change it up a little bit...to work better but I wasn't able to get the Bricks to function... Mainly because I wasn't sure what code to place on the blocks.

View 1 Replies

ActionScript 3.0 :: When Game Window Open After That User Don't Need To Click On Flash Stage Area For Unable Keydown Event

Dec 21, 2011

I have create a game and added keydown event on Stage but but problem is user need to click on stage then it start capturing keydown event. I want that when game window open after that user don't need to click on flash stage area for unable keydown event..

View 1 Replies

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 1/2 :: Decrease Hit Area - That Mouse Out Of To Make The Drop Down Area Pull Back?

Jul 28, 2009

i have a drop down menu am working on and each button tab (although they are not button instances !) when clicked opens up the "drop down" section which you can mouse over to choose another specific button etc - if you mouse out of that drop down area then it pulls back up to the original tab state ..  what do i change to the code below to decrease the area that you mouse out of to make the drop down area pull back .....at the moment it at least two inches on the screen below and to the right of boundaries of the drop down box before it pulls up - i want to it pull up as the mouse leaves the boundary box .... hope this makes sense .... there is some part of the actionscipt below that controls this but can work out which bit and how to change it !!! (am guessing the x mouse and y mouse bits - but how to change it ???)

[Code]...

View 1 Replies

Actionscript 3 :: Get BitmapData From A DisplayObject Included Transparent Area, And Effect Area

Aug 5, 2011

I have this function:

public static function cloneDpObj(target:DisplayObject):Bitmap
{
var duplicate:Bitmap;

[code]....

to clone target displayObject (MovieClip or Sprite) and return Bitmap Object.

It can get bitmap from the target object, but it seem don't get all the area of the image.

By give the width and height of target object, but the target object in design was applied by Glow Effect, so my question can we get the all view of bitmapdata from a displayobject?

View 4 Replies

Flash :: Determining Visible Area/invisible Area Of A Masked Object?

Sep 29, 2011

I have a movie clip named circle_mc(see the image on the link below) and a mask object(movie clip) which determines visible area of the circle. User can change the portion which is visible (extend the red area and make it red+blue, gray area is invisible). I need to find proportion of visible area to invisible area (red+blue/gray) so that I can calculate angle.

View 1 Replies

ActionScript 2.0 :: Load The Area Of The Xml File Into Text Area On Mouse Click?

May 21, 2004

I would like to first add the xml to my flash. Fine I can do this.But I have a number of buttons, where when I click say CW1, i get the information from the XML file with a node of CW1. I have all the xml set up fine.As I have about eight different postcode types.

ST, CW, CH, TF, WV, WS, DE, SK, SY, and each of these may have numbers that follow, i.e ST1, ST2, ST3 and so forth.

So I can only assume that the postal area could be the main nodes, and the numbers inside the child nodes, am I right thus far.o how can i load the area of the xml file into my text area on mouse click, pulling the information relating.

View 11 Replies

ActionScript 2.0 :: Draw *only* On The Board Area (a 450 X 350 Pixels Area) Instead On The Whole Movie

May 30, 2004

However I'd need to be able to draw *only* on the board area (a 450 x 350 pixels area) instead on the whole movie... how to "tweak it?" Here's the fla: [URL]

View 8 Replies

ActionScript 2.0 :: [Ask] Object Moving In Limited Area Or Masked Area

Jun 15, 2011

I have Particle animation like this this PHP Code:

[Code]...

But i want that Object moving in limited area or masked area. I add masked area like this PHP Code:

[Code]...

But it still not working. Any advice ?? or correction in my script code?

View 1 Replies

ActionScript 2.0 :: Declare An Area Then If Mouse Is Clicked In Area Then

Nov 29, 2009

I'm programming a game for my Advanced Higher Computing class, and am doing a whack a mole style game. I am trying to program for the bit where when you click the moving movie clip, then the score is increased by 1.

if(mousedown){
if(movieClip contains mouseXCoOrd){
if(movieClip contains mouseYCoOrd) {
score ++
}
}
}

View 3 Replies

Do Not Allow Editing At Specific Area In Text Area In Flex

Nov 10, 2011

I just want to do not allow editing at some area of text area in flex. How it can be done?let suppose text length in text area is 50 characters, i want to allow editing if cursor position is less than 15, and if cursor position in text area is greater than 15 it should not allow user to add more text in text area.If user press any key it should not add any character in text area.[code]

View 1 Replies

ActionScript 2.0 :: Flash8 Movieclip Area Movement - Restrict The Area In Which The Movieclip Can Actually Move ?

Apr 24, 2009

I have made a movieclip and gave the frame this actionscript:

------------------------------------------------------------
var keyListener:Object = new Object();
keyListener.onKeyDown = function() {[code]........

it moves fine and stuff but i was wondering how can i restrict the area in which the movieclip can actually move ? my flash file is 550px X 400px and i want to make it so that it can only move in 300px X 200px of the file if you understand ?

View 1 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 3 :: Make A Game Tutorial Of Flash Game?

Apr 1, 2011

how to make a game tutorial as farmville game tutorial to teach the user to play the game. i have recently involve in make that kind of game tutorial for its user by actionscript 3

View 1 Replies







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