ActionScript 3.0 :: Building Air Hockey Game

May 5, 2010

I'm working on an air hockey type game with Flash and ActionScript 3.0. I'm having a few problems and was hoping you guys could help me out. Mainly having to do with the hit detection and bouncing off the paddle at the correct angle. So far I've been able to get it mostly working, my problem is that it will only work in one direction, if you're moving the paddle to the right and hit the puck, it will bounce off at the same angle you were moving at. However, if you are moving the paddle to the left, it goes to the right. Another problem I was having involves multiple hits, or when the puck gets stuck on the paddle. It tries to calculate the angle and if you're not moving the paddle it kind of blows up. I was trying to get it to only detect the first hit, I tried a couple things, removing the listener and then adding it back with a timer, so you can hit again. That didn't really seem to have any effect.[code]

View 4 Replies


Similar Posts:


Building An App To Call A .swf Game?

Aug 7, 2011

I'm looking to build a flash application that acts as a "shell" around a flash game.I only need it to do some pretty basic functions:

1) Calls a PHP script I wrote to determine a few things (if user is logged in, what their userid is)

2) If the php file says the user is logged in, the "shell" should let the user play a .swf flash game that I wrote. And, after they are done playing my .swf game, I want the game to pass out a parameter (score). Again, the "shell" will call a prewritten php script to store the score.

3) If the php file says the user is NOT logged in, the "shell" should display a login box (username/password).

My main challenges have been getting one flash application to call another. (ie: the shell app calling my game). Is this possible?

View 1 Replies

Actionscript 3 :: Building A Multiplayer Game In Flash?

Feb 17, 2012

I want to develop a game like wordfeud for android and iPhone. For now I don't have a mac so I am not able to use xcode to develop for iPhone. Therefore I have decided to use adobe AIR so I can link the game to both android and iPhone.

I am able to build offline games like tetris etc. but what should I look into when I want the game to be multiplayer just like wordfeud where you can have several games running at the same time. I know I need a server for this, but can I use xampp for now just to test the application and then export the db to a real server or is it a different kind of server I must use?

View 3 Replies

ActionScript 3.0 :: Building An Online Mulitplyer Game?

May 31, 2011

if anyone knows of any great tutorials on building an online mulitplyer game

View 1 Replies

Actionscript 3 :: Framework / Engine For Building Social Game Like FarmVille?

Sep 8, 2010

The current architecture of the game is:PHP + MySql backend,Flash and ActionScript 3 frontend.Major criteria for engine/framework selection are:Support for isometric view. Resuability : The current game development should easy the work for building similar social game of diffrent story type in future.

Ease of development as3isolib - for isometric rendering, but restricted only to the rendering part. PushButton Engine - open source engine, component based Open-space engine - But That works with Smart Fox Server only I guess.

View 2 Replies

Actionscript 3 :: How To Load The Level Data Externally - Building A Tile Game

Jun 14, 2011

I'm building a basic tile game containing 3 layers of 'tiles' image the game has a dimension of 3x3 my data array's look like this:

[Code]...

How can i load this data from an external file which is easy to edit for the level-desiners ? (and what is best to use, xml, json,?) Is is not better to just use 1 datafile instead of 3 and what is the best way to do this?

View 3 Replies

Javascript :: What Is A Good Platform For Building A Game Framework Targeting Both Web And Native Languages

Jan 6, 2011

I would like to develop (or find, if one is already in development) a framework with support for accelerated graphics and sound built on a system flexible enough to compile to the following:

[Code]....

View 3 Replies

Flex :: Building Java Multiplayer Server Game - Difference Between Sockets And Webservice?

Aug 8, 2011

I'm building a multiplayer card game using Flex on the client side and Java on the server side and I wanted to know if I must sockets and the accept method in order to connect users to the server for in order for them to join a game room or create one or to chat.In the past I've learned how to build a game server which both sides are JAVA and connection was in sockets but now days the client side will be in FLEX which has few ways to connect to a Java server (XML,SOAP,BLAZEDS(AMF)) and I find it hard to understand how to write the Java server in order to do all the features of a game server,especially managing the rooms and sending data back to the users.

In the sockets way, when a user was connecting to the server and he had opened a room, this room was opened on a thread and who ever was joined that room then he was connected to the same thread and sending the messages to the right place was easy, so the problem is understanding how to do the same using SOAP or BLAZEDS.

View 4 Replies

Professional :: Animate A Hockey Player In Flash?

Oct 26, 2011

I need a very simple solution to make a very simple stylized hockey player. The player has to skate around the rink holding a hockey stick, then, stop and shoot a puck. I don't want the character or animation to be super realistic, but it has to look like the player is sort of skating and shooting a puck. Does anyone know how to accomplish this?I am open to any suggestions or a good tutorial or even if someone has the time to create a simple sample file of how to set up the skating

View 2 Replies

ActionScript 2.0 :: CS3 Multiple Countdown Timers To Schedule Indoor Hockey

May 4, 2010

The program I aim to create here will run a series of countdowns, all day long, one after the other, basically counting down to the next event.For example:

-1 minute countdown til game begins
-20 minute countdown til intermission
-2 minute countdown til second half
-20 minute coundown til games over
-5 minute countdown til new game starts

I have been given a lists of times for which to begin each timer (and its duration), but the tutorial I followed earlier uses an onEnterFrame function.I need some way to determine the closest timer that should be running, without killing the CPU with onEnterFrame. This task seems like it should be simple, but I can't quite wrap my head around it.[code]

View 9 Replies

ActionScript 2.0 :: Multiple Countdown Timers To Schedule Indoor Hockey

May 4, 2010

I've successfully made a countdown timer countdown to a predefined date (Christmas, and yes it was a tutorial). The program I aim to create here will run a series of countdowns, all day long, one after the other, basically counting down to the next event.

For example:

1 minute countdown til game begins
20 minute countdown til intermission
2 minute countdown til second half
20 minute coundown til games over
5 minute countdown til new game starts

I have been given a lists of times for which to begin each timer (and its duration), but the tutorial I followed earlier uses an onEnterFrame function. I need some way to determine the closest timer that should be running, without killing the CPU with onEnterFrame. This task seems like it should be simple, but I can't quite wrap my head around it.

[Code]...

View 6 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

ActionScript 3.0 :: Create A Tamagotchi Game Type Game?

Mar 28, 2012

im trying to create a tamagotchi game type game. For some reason i can not add any items to the stage.Currently i have imported 2 png images to the stage and coverted them to movie clips. One is called TamagotchiCharacter and the other is called Beer. I have also created a new 2 AS3.0 script class called TamagotchiGame and DraggableItem. The following is TamagotchiGame:

Code:
package {
import flash.display.MovieClip;
public class TamagotchiGame extends MovieClip {

[code]....

I have assigned the above code as the BaseClass of the Beer symbol, this has allowed the beer to become draggable and droppable etc.when i run the program nothing happens, i just get a blank white screen.

View 2 Replies

ActionScript 2.0 :: Game Development - Game Character Dialogues?

Jan 22, 2010

It's about the "Game Character Dialogues", It is used to instruct the user what to do, like what you see in BookWorm or Diner DAsh.I used dynamic text fields to generate these dialogues,but as I continued doing it. I found myself stuck.I have no idea on how to change the words when the "next" button is clicked. there will be no previous button. but the dialogue will replay when the character is clicked.

View 3 Replies

ActionScript 3.0 :: Tracking Time - Count The Seconds Passed While Playing The Game And Gives A Bonus Multiplier To The Current Score When The Game Ends?

Mar 15, 2009

Is there a way to get this code to work? It's meant to count the seconds passed while playing the game and gives a bonus multiplier to the current score when the game ends. I don't know how to get the returned value to combine it into the multiplier int variable. Is there any way to get this code to work or is it completely wrong?

View 11 Replies

ActionScript 3.0 :: Sound Repeats From Game To Game

May 19, 2010

We have a bug in one game whereby the sound of the word repeats. Even when we use stopAllSounds - the sound is still kept in memory and you can hear it in the next activity - it's a disaster and kids get real angry.

View 3 Replies

Actionscript 3 :: Game Logic And Game Loops?

Oct 22, 2011

I am making a Shooting game in flash actionscript 3 and have some questions about the flow of logic and how to smartly use the OOPs concepts.There are mainly 3 classes:Main Class: Initializes the objects on the screen.Enemy Class: For moving the enemies around on the screen.Bullet Class: For shooting.What I want to do is find out if the Enemy has been hit by a bullet and do things which must be done as a result ...What I am doing right now is that I have a ENTER_FRAME event in which i check collision detection of each enemy unit (saved in an array) with the bullet instance created, and if it collides then perform all the necessary actions in the Main class .. clogging the Main class in the process

View 2 Replies

Flex :: Specify Swc When Building A Swf?

Jul 7, 2010

I have implemented some utility classes in Flex that I want to use in multiple AIR projects. I have created a swc which contain these classes. I am working on a Linux machine and do not have FlashBuilder. So I am using the compc and mxmlc command line SDK tools. My problem is that I have not been able to find a way to specify the swc when building the standalone project. A tutorial suggested the following command: mxmlc -load-config /opt/flex/4.1.0/frameworks/air-config.xml -library-path=/path/to/utility.swc hello.mxml. However, using that gives me the error hello.mxml: Error: Unable to locate specified base class 'mx.core.WindowedApplication' for component class 'hello'. Everything works fine if I move all code from the swc to a single monolithic pro ject. The code for the standalone project is:

<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" windowComplete="completeHandler();">

[Code].....

View 1 Replies

Flash :: Made A Game And In The Game?

Oct 20, 2009

well i made a game and in the game there is music at the first frame and when u lose to goes back to first fram and more music plays so they are overlapping.

View 10 Replies

ActionScript 2.0 :: Menu Bar-add Item - When The User Selects "new Game" It Should Restart The Game?

Apr 3, 2009

im creating a card game. i have a seperate timeline for the menu bar. ive placed this code on the first cell of the timeline:

Code:
import mx.controls.Menu;
import mx.controls.MenuBar;[code].....

the problem i get is that when the user selects "new game" it should restart the game. when it does this the toolbar is not reset. instead a new menu item is added (without removing the old one. so evertime the user hits new game, a new "file" menu is added). how do i make sure there is only 1 "File" menu? and im using actionscript 2

View 1 Replies

ActionScript 3.0 :: Building A XML File?

Nov 25, 2009

I am creating a tool for use at the office. It has, at this point, about a dozen text fileds. From these textfields I want to build an XML document using AS. The way it needs to work is when a user enters text into these fields and hits the submit button that text is put into the propper tags. Each time the user hits the submit button another block of XML code is added to the file.

Here is most of the code. I am building this on another computer which is not online so I am only showing the important stuff here. It works so far but the only output I have seen is a trace. I could have the user manually copy and paste this output to the XML document but I would rather have the document built by the program each time the user hits the submit button. Am I even on the right track here? I have the correct output, now how do I add this output to an existing XML file?

function loadFile(){
var fileName:TextField = docName; //loading an existing XML file.
var loader:URLLoader = new URLLoader();
loader.addEventListener(Event.Complete, loadXML);

[code]....

View 2 Replies







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