ActionScript 3.0 :: Make A Color Memory Game?

Mar 1, 2010

I am trying to create a memory game, where about five or six (doesn't matter how much) different colours com up and flash for a second and disappear in a random order.

Then the user has to try to match them again buy clicking on the colours that they have infront of them in the same sequence as the lights went.

Is there a way to make this game so it will tell you when you are wrong or right, and also is it possible to make the flashing colours random each time you play it?

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Make Some Sort Of Game Where The Player Is To "escort" A Color To A Target?

Nov 1, 2009

I'm trying to make some sort of game where the player is to "escort" a color to a target. The user starts as gray and the player is painted one of four colors when he hits one of the boxes on the screen. The game is over when the player's object is the same color as the target's color and they touch. All this is realized, except a part where the target is a different color every time the game restarts. So far I have

ActionScript Code:
public function randomcolor():void
{

[code]....

The target has a color assigned to it; winrar.color which is working. How do I get things working so the target is actually colored correctly?

View 2 Replies

Memory Leak In My Shooter Game?

Oct 20, 2011

I'm very new to flash,and have been digging through google and this site for information on how to piece together an AS2 shooter game.Its going well enough, but I'm having slowdown issues the longer the games runs, and I was hoping someone here could point me in the right direction.To paste an enemy movie clip on the screen, i'm using this:

Code:
var spawn =_root.attachMovie("monster1","monster1"+_root.getNextHighestDepth(),_root.getNextHighestDepth())[code]........

I need them stored in an array so that the player's shots can test weather or not they've hit any monster on the bullet's enter frame function, then call that monster's movie clip's take damage function. I'm using a for loop to do this:

Code:
for(var i in _root.player.foes){
if (this.hitTest(_root.player.foes[i])){
_root.player.foes[i].takedamage();}
}

I think the problem with the slowdown is that each time I place an enemy on the screen the array gets bigger and bigger. The slowdown only happens while the player is shooting, and I suspect the ever longer for loop with the hit testing is causing it.

I'm already removing the monster's movie clips as they get killed or exit the screen, I guess what I need is a way to reduce the size of the array at the same time, or at least tell the for loop not to do a hit test unless the monster is still alive.

View 3 Replies

IDE :: Random Sequence Memory Game?

Feb 24, 2009

I'm trying to create a random sequence memory game, where user has to watch over a certain sequence appears on the screen before they can input (by pushing buttons) according to the sequence appear before.I've found simon sayz code and make a modification on it.It worked flawlessly, but there is one problem with it.The code creates the sequence in this manner, e.g:

1
1 1 2
1 1 2 3
1 1 2 3 4
1 1 2 3 4 5
etc,..

while the game I'm intended to develop doesn't need that kind of increment logic, they just need to display 5 different element for starter and then the user should follow the sequence displayed on it.

View 2 Replies

ActionScript 3.0 :: Memory Game Random Function?

Feb 11, 2010

I made a memory game with a tutorial. My knowledge of AS3 is not that good so I have to following question.There is a function like Math.Random to random generate number and put them on stage. I made a memory game and the cards are on the same place every time I play the "movie".I want them to shuffle every time I restart the game. How can I write a good random function in AS3?

View 10 Replies

ActionScript 3.0 :: Scroll Game Image Memory?

Apr 13, 2011

i am making a game with scrolling background. I am using a tiled background.inactionscript I was going to hide background objects off the screen but this cause memory to still be taken up by the hidden images so what do i do?the scrolling background isnt repeating so i could have 4-5 screens of image tiles off screen and made invisible until required.

View 1 Replies

ActionScript 3.0 :: Memory Game - Match Two Different Colours?

Nov 21, 2011

This person created this game:http:[url]....i was wondering if i wanted to match two different colours, how could i do this? for example, instead of matching two reds, if i wanted to match a red and green, how is this done?

View 2 Replies

ActionScript 3.0 :: How To Add Memory To Flash Game Or Movie

Mar 9, 2011

I may be tackling a huge subject here but I was wondering how to make it so that if someone uses one of my flash projects and they close it that it would remember where they left off. For example there are many Flash Games out there with levels, and instead of having to repeat each level over and over, the game remembers the level you left off at.

View 1 Replies

ActionScript 2.0 :: When Click 'Bone Memory' Game It Load Up Fine

May 7, 2004

The prblem that i have is that when i click the 'Bone Memory' game it load up fine. I can play the game and the 'Play Again' button work as well.The problem occurs when i use the 'Main Menu' button. It goes to the main screen, which is fine, but the 'duplicate' cards that were created for the game appear on this main screen when they shouldn't. This in turn causes problems with playing the game when the 'Bone Memory' button is selected for the second time. The cards are all in the wrong places.I am attching the file with the code. The main screen and game were created seperatly and i have tried to combine the in the file attched.

View 14 Replies

ActionScript 3.0 :: Game Slowing Down Everytime Reload Level / Memory Leak?

May 18, 2011

This is my first attempt at a game in AS3.I'm currently experiencing a problem which I'm sure is a result of my poor understanding of programming concepts.My problem is this, every time I call the function to rebuild my level, the game progressively slows down.I've tried to clear everything, but somehow something is still causing the slow down. I'll attach a zip with all of the files, and also I will add the main code to this.The attempted clearing happens in a function called cleanup() and the level setting up in setupLevel().[code]

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 :: 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 2.0 :: Make A Dynamic Text Boxes Border A Certain Color Along With Background Color

Oct 18, 2003

How would I make a dynamic text boxes border a certain color, along with background color.

View 1 Replies

ActionScript 2.0 :: Make The Color From A Mc - A Square With A Flat Fill - Fade From One Color To Another

Jan 31, 2004

How can I make the color from a mc, a square with a flat fill, fade from one color to another (by using actionscript only) ?

View 4 Replies

ActionScript 2.0 :: Make A 4 Color Gradient, A Separate Color On Each Corner?

Jun 7, 2007

make a 4 color gradient, a separate color on each corner?

View 2 Replies

ActionScript 3.0 :: Fix A Memory Leak At The End Of The Game A Bunch Of Sprites "explode" And Fly Around

May 8, 2010

i have an evil memory leak that i would like to fix. at the end of the game a bunch of sprites "explode" and fly around. once they leave the stage, i stop their enterframe loop and remove them like so:

[Code]...

View 7 Replies

ActionScript 2.0 :: Flash With Memory - Make A Screensaver With Posibilitys To Make Notes Like 3M Post-it Notes?

Apr 3, 2004

I would like to make a screensaver with posibilitys to make notes like 3M post-it notes, the flash file should "remeber" the input that the user writes. I have the tools to make screensaver in Flash, but how to make such a flash file?

View 3 Replies

ActionScript 3.0 :: Color Objects That Are Flying Around In Space Game?

Jul 5, 2011

trying to color objects that are flying around in my space game.When I shoot and hit them - the affected enemies shall blink. The graphics are pre-rendered (i.e. there's an rotation array and function where the degrees and their appropriate rotation for the objects are stored / calculated for better performance).

So - my idea was to enhance that rotation function with a functionality for additional coloring; but the colored AND rotated objects shall be stored apart of the normal rotated objects. To accomplish this I made a nested array:in row one there are 360 rotated graphics of one object and in row two there are 360 graphics of a rotated and colored object.

Problem: Coloring works but they are not rotated (always at 0 degrees).

Code:
public function createRotationWithColorBlitArrayFromBD(sourceBitmapData:BitmapData, inc:int, offset:int = 0):Array
{
trace("sourceBitmapData.width=" + sourceBitmapData.width);

[code]....

View 4 Replies

ActionScript 2.0 :: Change The Color Of The Target When Game Ends?

Feb 29, 2012

I've created a simple drag 'n' drop game and I want the color of the target to be changed only when the user puts inside it all the text frames.

The instance name of the target is "targetCircle" and that of the text frames is "circle_mc", "circle1_mc"....."circle5_mc".

View 0 Replies

ActionScript 3.0 :: Make The Character In Flash Game Make A Jump When The Player Presses A Key?

Dec 19, 2009

i want to make the character in my flash game make a jump when the player presses a key,e.g. 'space',even the player release the key instantly,the character will still finish the complete jump process.

View 1 Replies

Memory Management - Make Flash 'play Well With Others'?

Apr 21, 2010

the Flash Virtual Machine relies on garbage collection by using reference counting and mark and sweep (for good coverage of these topics, check out Grant Skinner's article and presentation). And yes, Flash also provides the "delete" operator, which can (unfortunately only) be used to remove the properties of dynamic objects.

What I want to know is how to make it so that Flash programs don't continue to consume CPU and memory while running in the background (save loading content or communicating remotely, for example). The motivation for this question comes in part from Apple's ban on cross compiled applications (in its SDK 4) on the grounds that they do not behave as predicted with the multitasking feature central to iPhone OS 4. My intention is not only to make Flash programs that will 'pass muster' as far as multitasking in iPhone OS 4, but also to simply make better (behaving) Flash programs.

Put another way, how might a Flash application mimic the multitasking feature of iPhone OS 4? Does the Flash API provide the means for a developer to put their applications to 'sleep' while other programs run, and then to 'awaken' them just as quickly?

In our own program, we might do something as crude as detecting when the user has been idle (no mouse motion or key press) for (say) four seconds:

var idle_id:uint = setInterval(4000, pause_program);
var current_movie_clip:MovieClip;
var current_frame:uint;

[code]....

what's the best way to detect that an application should be shelved? And, more importantly, is it possible for Flash Player to detect that some of its running programs are idle, and to similarly shelve them until the user performs an action to resume them?

View 2 Replies

ActionScript 3.0 :: Garbage Collecting - Make Sure There Are No Memory Leaks?

Feb 9, 2010

What's necessary to do when removing an object to make sure there are no memory leaks? Do you have to remove all children? Or just remove all event listeners? Or both?

View 1 Replies

Actionscript 3 :: Greensock LoaderMax Memory - Clean The Memory Which Been Occupied By The Previous Queue

Jan 31, 2012

I have a bit trouble with LoaderMax memory occupy, i have a queue, and i am keep loading images depend on user's action. if they click load more and it keep load, but i would like to clean the memory which been occupied by the previous queue (i have remove all the children been added by the loading previously). is there a way i can do it? the behavior like this.

[Code]...

View 1 Replies

ActionScript 3.0 :: Memory Monitor That Allows To See The Memory Leaked And Find Its Location?

Sep 26, 2010

I have an FPS monitor running and notice that I am getting choppiness here and there, bringing my game from 40 to 27 fps and back and forth at certain stages. I have an idea of where it is happening, but do not know for sure. I looked up quite a few memory monitors but haven't found anything decent yet. Is there a memory monitor that allows you to see the memory leaked and find its location? If not, how about just he memory leaked?

View 4 Replies

ActionScript 2.0 :: Memory Management - Take Less Memory For Scrolling

Aug 2, 2007

I'm making an isometric game and I need to know which takes less memory for scrolling, making everything invisible that you can't see? Like if(!this.base.hitTest(worldHitter))this._visible = false; Or would it be better to remove the movieclips unseen and then reattach them when i should see them?

View 2 Replies

ActionScript 1/2 :: Make A Car Game?

Apr 27, 2008

I am trying to make a car game, but my car movement is mucked up and I'm not sure why.It also needs brakes and acceleration.

View 7 Replies

How To Make A Flash Game

Sep 29, 2011

where to get some corresponding information of how to make a flash game.Preferably with some examples of little flash games

View 1 Replies

Make Big Game Run More Smoothly?

Feb 16, 2012

I am developing a ipad game using flash CS5. When I run it in flash or web browser, it run quite smoothly but when I published it into ipa file and run it on my own ipad, it became very very slow. Since my game has many stages and characters, the amount of symbols may up to more than 50. That makes the flash file more than 100mb (but the ipa is only 11mb) All of the symbols are exported in frame 1.

1)if I used preloader and exports the symbols in frame 2, will my game run more smoothly? is one preloader when the game is loaded enough? or it is need for every game scenes?

2)Is there any other technique that a big game developed in Flash has to follow in order can be run in low configurations devices?

3)Why many other big game can run so smoothly although it contains a lot more characters and background than mine?

View 3 Replies

Make A Game In Flash?

Feb 4, 2010

I have to make a game in flash, and this game is the equivalent of 'Millionair' tv-game, so it's not so complicated and I have to give a badget to my Client.

View 1 Replies

IDE :: Possible To Make An RTS Game In Flash

Jan 9, 2006

I was wondering if it were possible to make an RTS game in flash, and if it was, are there any tutorial on that?You know, like get the more cash than the enemy, buy guys with it, and kill the enemy first?

View 1 Replies







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