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


Similar Posts:


Flash :: Logic For A Matching Game?

Feb 5, 2011

I was given a task to make a match making game in actionscript 2, problem is, i have very little knowledge about the language (well, and how matching works in as2, what are the important codes, code emplacements, and all I am new in AS2, and i really need a lot of help with our project. :)

I plan to match images. But.. I was planning to have a sort of "Compatibility" match-up game, like,..let's say we have two batteries, one has a 50v capacity(how do u measure batteries?) then the other has a 100v capacity, then there's this battery slot that only accepts a 50v battery, then you will have to match this 50v battery to that battery slot, that's my concept for the game, sir. I hope you got what i said, sir. :D

View 1 Replies

Actionscript 3 :: AI Opponent Car Logic In Car Race Game?

May 24, 2010

i want to develop AI car(opponent) in car race game what should be my direction to develop them with less complexity because i don't have any idea. because the player car is moving on the scrolling track plz suggest me should i have to use relative motion or way point concept but that should also be change on the scrolling track (i.e. player car movement)

View 3 Replies

Actionscript 3 :: Where Should Damage Logic Go Game Engine Or Character Class?

May 22, 2010

I am making a game and I am trying to decide what is the best practice for exchanging damage between two objects on the screen. Should the damage be passed directly between the two objects or should it be pass through a central game engine that decides the damage and different criteria's such as hit or miss or amount dealt.

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

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

Flash Games - When Game Page Loading , The Flash Game Itself Does Not Appear?

Feb 15, 2010

When game page loading , the flash game itself does not appear ( just white area as the holder of the flash game) untill the game almost finish downloading, then it appears .. This long waiting with just white area makes visitors leave, thinking there was nothing there.

View 1 Replies

ActionScript 3.0 :: A Board Game - Get Classes To Putting Together A Board Game?

Mar 22, 2010

where to get classes to putting together a board game, free of course.I do not want to use them actually but get the idea of how mine would incorporate into the classes.I have a board game where I want each square on the board to know if it is occupied or not, to change its color, and to keep track of what is actually happening with it.

View 2 Replies

Making A HUD For A Game ?

Jul 8, 2010

I am working on a Heads up display and I am having some problems. The Problems are i cant seem to get Flash to do what I want...I am relatively new to flash but I know that I need to use action script 2.0 and Kismet to make what I want happen. (I am using the UDK and Scaleform for the development of the game I am helping with)Here is what I am doing.

I am making a cross hair. When I highlight an enemy it should turn red. When it Highlights an ally it should turn blue.I have made a heart beat Monitor that needs a animation for a heartbeat and Flat lining. The Background of the Heart beat monitor Changes color according what has happened to the player, If the player Gets hit the background of the heartbeat monitor changes color. If the Player gets hit too much the Heart Beat Monitor will flat line.Then I am making a radar for the hud.

View 1 Replies

ActionScript 2.0 :: Game Within A Different Fla?

Sep 18, 2005

So I made a movie, then I made a game to go along with it. I made the game in a seperate FLA. After I was done making the game, I went through to make sure I never used _root. I hadn't (I think I'm pretty sure, I've checked a couple times.) I basically copied all four frames of my game and put them in a movieclip in the original movie. However, when I exported this, the game...well, you can see for yourself. It just...doesn't work.Here's the FLA of the game and movie:

View 11 Replies

IDE :: Looking To Get Some Pointers On A Game?

Jun 17, 2009

Mainly looking for pointers to the tutorials I am sure exist (but which I can't find). But I am also very open to any general or specific advice you may have to spell out for me in the thread. I am looking to build a PBBG (Persistent Browser Based Game) which, while single player, has some few multiplayer elements. Indirect interaction. One example of this is a commodities market - yes, the good old space trading, fly to one planet and buy, fly to another and sell scenario. I want every player to impact the inventory of each planet, and to have that inventory affect the buy/sell margins, etc. Other Indirect interaction would be bars et al, where players can chat, maybe (a BIG maybe) trade inventory and such. It seems direct, but it is not fighting one another or fighting at each other's side, etc.; so to me it is 'indirect' to the game. But that isn't why I'm here (feel free to impart any wisdom you have anyway, if you so desire); just an aside to explain a bit about the game.

[Code]...

View 1 Replies

ActionScript 2.0 :: Help With A Game

Jul 21, 2010

Hello! I'm currently making my own flash game. Everything is going ok for now, but i've come across a problem. I want to add health regeneration things I have spikes which when touched takes 5 from your life, and i'm using the same code, but with the difference that it suppose to add 5 to your life, but it don't. So this is the code that i'm wrote:

Code:
onClipEvent (enterFrame) {
if (this.hitTest(_root.char)) {

if (_root.health.text < 100) {

_root.health.text += 5 ;

unloadMovie(this);

}

if (_root.health.text > 100) {

_root.health.text = 100;

unloadMovie(this);

}

else if (_root.health.text == 100) {
unloadMovie(this);

}
}

}
So if for instance your health is 85 instead of adding 5 and making it 90 it adds 5 in the back and it becomes 855. What am i doing wrong?!

View 1 Replies

AS3 :: CS3 Space Invaders Game

Mar 15, 2009

I am making a space invader game as a uni project. Please seee attched file.I am getting an error:TypeError: Error #1009: Cannot access a property or method of a null object reference. at MethodInfo-19()It only happens sometimes when an invader is removed in the moveBullet method I think but basically the game behaves incorrectly and sometimes goes to the You Win frame even if the user has lost or just lost a life.

View 1 Replies

ActionScript 3.0 :: Cannot Run OpenScreen As It Is In Game.as?

Mar 20, 2009

I am quite new to AS3 and need to pass on functions now.What I have is:

Game.as

BaseScreen.as
- Case.as
- Menu.as[code].........

Obviously it cannot run openScreen as it is in Game.as, however if I put this piece of code in a new Functions.as and run it it won't run addChild (so it adds nothing to the stage). My question now is: how do I pass on this code properly so I can run it in Menu.as as well?

View 14 Replies

AS2 :: CS3 : Creating A Flash Game?

Mar 22, 2009

And I am creating a box game where the user has to avoid the boxes but i want to put lives on so when the user moves over the box one of the lives goes down.

View 8 Replies

How To Get Puzzle Game To Be Aligned Right

May 21, 2009

I'm pretty new to flash but recently got an assignment at college to produce a childrens game, I've been following a tutorial online to produce a jigsaw puzzle, so I can get use to actionscript and gain a little experience. I cant get some alignment right. I've followed this tutorial exactly and this is where i am stuck, below are the instructions and how it should look:
This is how mine looks, as you can see its out of place:

View 2 Replies







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