Help Snake Game
Hi, if i was trying to make a snake game, how would I go about doing it. I'm not asking for an entire game, but I am kind of stuck. I start out with one segment int the body and it can move fine, but how do I tell the other segments to follow the one before it?
ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 05-15-2006, 04:30 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
[CS3] Snake Game, Game Size
I'm using this snake game code from the old Nokia phones. The game takes place in a 150X150 square, i want this to be 384X512 but ideally it would be in a var so it can be changed easily. Can anyone help?
PHP Code:
var unit = 15;//size of snake partsvar uwh = 20;//?var canMove = false;var dir = 2;var score = 0;aPieceList = new Array();mouseListener = new Object();mouseListener.onMouseDown = function(){ if (!canMove) { canMove = true; startGame(); }};Mouse.addListener(mouseListener);k = new Object();k.onKeyDown = function(){ var k = Key.getCode(); if (k == Key.UP && dir != 2 && canMove) { dir = 0; canMove = false; } else if (k == Key.LEFT && dir != 3 && canMove) { dir = 1; canMove = false; } else if (k == Key.DOWN && dir != 0 && canMove) { dir = 2; canMove = false; } else if (k == Key.RIGHT && dir != 1 && canMove) { dir = 3; canMove = false; }};Key.addListener(k);function addPiece(){ var p = this.attachMovie("piece", "piece" + aPieceList.length, aPieceList.length); p._x = aPieceList[aPieceList.length - 1]._x; p._y = aPieceList[aPieceList.length - 1]._y; aPieceList.push(p);}function moveFood(){ var moveIt = true; while (moveIt) { food._x = Math.floor(Math.random() * uwh) * unit; food._y = Math.floor(Math.random() * uwh) * unit; moveIt = false; for (var i = 0; i < aPieceList.length; i++) { if (aPieceList[i]._x == food._x && aPieceList[i]._y == food._y) { moveIt = true; } } }}function gameOver(){ delete this.onEnterFrame; tScore.text = "You Lose. Score: " + score; canMove = false;}function startGame(){ for (var i = aPieceList.length - 1; i >= 0; i--) { aPieceList[i].removeMovieClip(); aPieceList.pop(); } score = 0; var p = this.attachMovie("piece", "piece" + aPieceList.length, aPieceList.length); aPieceList.push(p); p._x = 10 * unit; p._y = 10 * unit; var food = this.attachMovie("food", "food", -1); var c = 0; moveFood(); var startingLength = 3; for (var i = 1; i < startingLength; i++) { addPiece(); } this.onEnterFrame = function() { canMove = true; tScore.text = score; for (var i = aPieceList.length - 1; i > 0; i--) { aPieceList[i]._x = aPieceList[i - 1]._x; aPieceList[i]._y = aPieceList[i - 1]._y; } if (dir == 0) { aPieceList[0]._y -= unit; } else if (dir == 1) { aPieceList[0]._x -= unit; } else if (dir == 2) { aPieceList[0]._y += unit; } else if (dir == 3) { aPieceList[0]._x += unit; } if (aPieceList[0]._y / unit == 20) { aPieceList[0]._y = 0; } else if (aPieceList[0]._y / unit == -1) { aPieceList[0]._y = 19 * unit; } else if (aPieceList[0]._x / unit == -1) { aPieceList[0]._x = 19 * unit; } else if (aPieceList[0]._x / unit == 20) { aPieceList[0]._x = 0; } if (aPieceList[0]._x == food._x && aPieceList[0]._y == food._y) { score += 10 * aPieceList.length / 2; moveFood(); addPiece(); } for (var i = 1; i < aPieceList.length; i++) { if (aPieceList[0]._x == aPieceList[i]._x && aPieceList[0]._y == aPieceList[i]._y) { gameOver(); } } };}
Worm Or Snake Game
I am trying to make my own worm game but I am stuck.
If somebody has a code for it Please sent it to t0mc4thr@yahoo.com
thanks
Snake Game Problems
I'm creating a snake-like game but I just ran into some problems. (It's a game where the snake has to continously grow, so that the tail stays and the body just gets longer and longer.)
In my game the snake has a head that moves, and a body-mc that is beeing duplicated and places behind the head every time it moves.
The problem is that the body isn't beeing duplicated. The head IS moving but the body doesn't grow. I think it has something to do whith the DuplicateMovieClip script and the variables in it. Can someone please help me?!
I think the script was a little to long to post here, and that you have to se the whole file. I have attached the .fla-file.
- Hommer
Help With SNAKE Style Game
I am making a game with Flash MX ver 6.0
It is fine so far except i do not know how to make objects appear randomly around the canvas after one another. Like the objects you pick up when playing snake.
I think i should use attachMovie but am not sure .
If anyone knows anything or could show me a tutorial I would greatly appreciate it.
BTW I am not making a tile-based game it is art-based
Snake Game Movement Help
I attached the file, basically i need to have the movement eased. Like when the snake goes up and left the square that is turning needs to go to frame 11...
I figure this needs to be adited...
ActionScript Code:
this.onEnterFrame = function() {
canMove = true;
/* Move the snake */
for (var i = aPieceList.length-1; i>0; i--) {
aPieceList[i]._x = aPieceList[i-1]._x;
aPieceList[i]._y = aPieceList[i-1]._y;
if (i != (aPieceList.length-1)) {
if (aPieceList[i-1]._currentframe == 1 or aPieceList[i-1]._currentframe == 3) {
aPieceList[i].gotoAndStop(5);
} else if (aPieceList[i-1]._currentframe == 2 or aPieceList[i-1]._currentframe == 4) {
aPieceList[i].gotoAndStop(6);
} else {
aPieceList[i].gotoAndStop(aPieceList[i-1]._currentframe);
}
}
}
But i can make it work....
I attached the fla... If someone could help i'd greatly appriciate it.
Thank you for your time
~Gabor
Snake Game Problems
I'm creating a snake-like game but I just ran into some problems. (It's a game where the snake has to continously grow, so that the tail stays and the body just gets longer and longer.)
In my game the snake has a head that moves, and a body-mc that is beeing duplicated and placed behind the head every time it moves.
The problem is that the body isn't beeing duplicated. The head IS moving but the body doesn't grow. I think it has something to do whith the DuplicateMovieClip script and the variables in it. Can someone please help me?!
I think the script was a little to long to post here, and that you have to se the whole file. I have attached the .fla-file.
- Hommer
Snake Game Problem...
I cant figure out whats wrong....and its making me mad. lol. anyways, its a basic snake game within a box...hit the wall, ur done...simple. But my top wall isn't working properly and the character goes right off the scene....and it keeps going....and going....and going. Any help would be appreciated. Unfortuantly, I cant upload anything because its too big....
Map Editor For Snake Game
Hello All.
It was a while back that I made this .fla, but I don't know what happened, just one day it stopped doing anything when I opened it. The highlight of the file is the Map Editor which if you click around in the box, you will see the program insert little boxes in which serve as walls for the game. But as I mentioned, the file does not even really open. When I select it and tell Flash to open it, it acts like it is opening it, but does not do anything... Does anyone know what the problem may be?
Also, Flash seriously and litterally will open up any of my other .flas except this one... If anyone can open the file, could they save it as something else and send it back to me as I really want to continue working on the file, but I don't want to start back over again as it took me a while to get to where I am in the program.
Thanks for Everyone's Help
Snake Game Problems
I'm creating a snake-like game but I just ran into some problems. (It's a game where the snake has to continously grow, so that the tail stays and the body just gets longer and longer.)
In my game the snake has a head that moves, and a body-mc that is beeing duplicated and placed behind the head every time it moves.
The problem is that the body isn't beeing duplicated. The head IS moving but the body doesn't grow. I think it has something to do whith the DuplicateMovieClip script and the variables in it. Can someone please help me?!
I think the script was a little to long to post here, and that you have to se the whole file. I have attached the .fla-file.
- Hommer
Snake Game Problem...
I cant figure out whats wrong....and its making me mad. lol. anyways, its a basic snake game within a box...hit the wall, ur done...simple. But my top wall isn't working properly and the character goes right off the scene....and it keeps going....and going....and going. Any help would be appreciated. Unfortuantly, I cant upload anything because its too big....
Advanced Snake Game (giving Me A Big Headache...)
(mx)
Hi all,
I don't know if this is even possible, but i don't want to give up yet.
A client want's me to do a "snake"style game BUT the head, the torso and the tail are made of different graphics (different in style, color, shape) which means I can't use the engines from here, because they are all made for snakes that consist of the same rectangular shapes (adding and removing clips as needed)
since in the game i have to do, the head for example is 10 by 15 px in size and resembles a horse, i have to rotate it when it changes directions, which is really not a big issue, but i have to somehow save the position where it changed directions, because the following objects have to change directions and rotations at the same spot.
........
if anyone has a cool idea on this, please let me know
thanks in advance
[Game] - Curvy Snake - 2minute Jobby
Yeah, You've all seen snake a-la nokia, grid n'all, well, got asked to do a version, WHY ME? poor game, so I've added a little spice, (er, well a curvynature)
play it here - haven't touched the GFX yet, lol!, but criticisma s to making harder/better always wanted...
Snake
I'm building a snake game in flash and I just can't seem to get the tail right
How would I go about building the tail (tail blocks following the head and each other)?
Snake-problem
Hi,
Here is the problem, I'm trying to make a snake-game. But I'm always stuck with the actions.
I was wondering if somebody could help me. This is what I got:
onClipevent (enterFrame) {
_root.snake._x=(_root.snake._x-15); \begin position
if(Key.isToggled(Key.LEFT)) {
_root.snake._x=(_root.snake._x-15);
}
...
This isn't correct, I know but I don't know how to do it...
If somebody would help me, thx
Trailing Snake
Somebody please help ...I am a beginner Flash 5.0 user. I am trying to create a line that starts from one side of my movie, and moves along a pre-determined path (preferable along a straight line, forming an open circle in the middle of the movie, and then ending with a straight line across to the other side of the movie). i want to start with a blank movie and end with this finished graphic. ( i plan to fade words into the circle after it is done). how do i do this? i want to create a snake like effect with the line, where the snake gets longer as the line goes along its path
respond katz3@tcnj.edu
Trailing Snake
Somebody please help ...I am a beginner Flash 5.0 user. I am trying to create a line that starts from one side of my movie, and moves along a pre-determined path (preferable along a straight line, forming an open circle in the middle of the movie, and then ending with a straight line across to the other side of the movie). i want to start with a blank movie and end with this finished graphic. ( i plan to fade words into the circle after it is done). how do i do this? i want to create a snake like effect with the line, where the snake gets longer as the line goes along its path
respond katz3@tcnj.edu
Snake Theory?
How do I create the growth of a snake, and movement. I know there are two ways to do it, take a square off the end and put it in front. But I have no idea how I'd do that, and the second way is moving it normally: _x += 3 ,or something like that. Please give me a start on that.
-=Thanx=-
Snake Tutorial
Does somebody know a good snake tutorial.
Because i cant find a good one.
Snake Tutorial
Does somebody know were to find a good snake tutorial.
I have looked every were.
Flash Snake
Hello guys, does anyone of you have a flash version of the game "Snake"?
You know that game where your 2d wurm is getting a longer tail everytime it eats something. And your goal is not to hit the walls or eat yourself... :)
I would like a version to learn from. You see we have a school project to make a game.
So if anyone would like to help me a bit to explain how the actionscript/interaction in that game should be and such... For instance: "How to make a grid" and "let an object randomly be placed on one of the grid except on the Snake itself".
And I would also like to know some sites that have very good tutorials about Actionscript.
Thanks in advance.
Making A Snake
hi,
i am making a presentation , anyway that is not the problem, i am making a caducis in flash, now i have made the thing but i want the snakes to come and then wound themselves around the caducis. now my problem is with snakes, how to make them, they are not fancy or anything just solid black in color, i tried using shape tweening with them but it does not work so nicely , any idea, or am i using the wrong tool ?
thanx in advance
gilc
Help, Stuck With The Action For Snake
Hi,
Here is the problem, I'm trying to make a snake-game. But I'm always stuck with the actions.
I was wondering if somebody could help me. This is what I got:
onClipevent (enterFrame) {
_root.snake._x=(_root.snake._x-15); \begin position
if(Key.isToggled(Key.LEFT)) {
_root.snake._x=(_root.snake._x-15);
}
...
This isn't correct, I know but I don't know how to do it...
If somebody would help me, thx
Park My Snake In Your Treasure Box
Hi Friends,
I have a snake(movie clip) and it has to go inside a square treasure box(movie clip). I can detect when the snake touches the treasure box, but how do i detect that the snake is inside (right in the middle of) the treasure box and not touching any of the sides? I figure i have to detect the coordinates of the treasure box movie clip somehow, i'm a bit lost on the actionscript here - any help is appreciated - Thanks, woktoc
Controlling The Movement Of A 'snake'?
Hi,
I wonder if anyone can help me. I have to do an animation of a snake, (Nokia style), that moves around a page on a guide. I found a script that allows me to create the snake with actionscript, but now I'd like to know how to make this actionscripted created snake follow the guide.
I've attached the file.
Thanks for any help you can offer me.
Lenny.
Problem In Movement Of Snake
hi, i am building a snake game, my goal is to build the script in one frame i.e first frame
but the error comes when i am using arrow keys, the snake is entirely going up or down at once in their exact positions i mean to say that the objects are not following each other i am posting that entire script so that it may be easy to find out the error
i think the total error was in onEnterFrame script so please solve the problem
arr = new Array();
arrpos = new Array();
tempposx = 6;
tempposy = 6;
condition = -1;
stateof = condition;
for (i=0;i<10;i++) {
attachMovie("cute","cute"+i,i);
arr[i] = eval("cute"+i);
tempwidth = arr[0]._width;
init = arr[i];
init._x = 100 - tempwidth * i;
init._y = 300;
arr[i].x = 6;
arr[i].y = null;
}
obj = new Object();
obj.onKeyDown = function () {
if (Key.isDown(Key.LEFT)) {
arr[0].x = -6;
arr[0].y = null;
signer = -1;
}
if (Key.isDown(Key.RIGHT)) {
arr[0].x = 6;
arr[0].y = null;
signer = 1;
}
if (Key.isDown(Key.UP)) {
arr[0].x =null;
arr[0].y = -6;
signer = -1;
}
if (Key.isDown(Key.DOWN)) {
arr[0].x =null;
arr[0].y = 6;
signer = 1;
}
tempstore = {x:init._x, y:init._y};
//arrpos.push(tempstore);
//condition = true;
}
Key.addListener(obj);
onEnterFrame = function () {
for (i=0;i<10;i++) {
arr[i]._x += arr[i].x;
arr[i]._y += arr[i].y;
if(arr[i].y)
arr[i].x = null;
else(arr[i].x)
arr[i].y = null;
if(arr[i]._x > tempstore.x && arr[i]._x < arr[i-1]._x )
{ arr[i].x = null;
arr[i].y = 6 * signer;
}
else if(arr[i]._x < tempstore.x && arr[i]._x > arr[i-1]._x ){
arr[i].x = null;
arr[i].y = 6 * signer;
}
else if(arr[i]._y > tempstore.y && arr[i]._y < arr[i-1]._y){
arr[i].y = null;
arr[i].x = 6 * signer;
}
else if(arr[i]._y < tempstore.y && arr[i]._y > arr[i-1]._y ){
arr[i].y = null;
arr[i].x = 6 * signer;
}
}
}
Problem Of Movement Of Snake
hi, i am building a snake game, my goal is to build the script in one frame i.e first frame
but the error comes when i am using arrow keys, the snake is entirely going up or down at once in their exact positions i mean to say that the objects are not following each other i am posting that entire script so that it may be easy to find out the error
i think the total error was in onEnterFrame script so please solve the problem
arr = new Array();
arrpos = new Array();
tempposx = 6;
tempposy = 6;
condition = -1;
stateof = condition;
for (i=0;i<10;i++) {
attachMovie("cute","cute"+i,i);
arr[i] = eval("cute"+i);
tempwidth = arr[0]._width;
init = arr[i];
init._x = 100 - tempwidth * i;
init._y = 300;
arr[i].x = 6;
arr[i].y = null;
}
obj = new Object();
obj.onKeyDown = function () {
if (Key.isDown(Key.LEFT)) {
arr[0].x = -6;
arr[0].y = null;
signer = -1;
}
if (Key.isDown(Key.RIGHT)) {
arr[0].x = 6;
arr[0].y = null;
signer = 1;
}
if (Key.isDown(Key.UP)) {
arr[0].x =null;
arr[0].y = -6;
signer = -1;
}
if (Key.isDown(Key.DOWN)) {
arr[0].x =null;
arr[0].y = 6;
signer = 1;
}
tempstore = {x:init._x, y:init._y};
//arrpos.push(tempstore);
//condition = true;
}
Key.addListener(obj);
onEnterFrame = function () {
for (i=0;i<10;i++) {
arr[i]._x += arr[i].x;
arr[i]._y += arr[i].y;
if(arr[i].y)
arr[i].x = null;
else(arr[i].x)
arr[i].y = null;
if(arr[i]._x > tempstore.x && arr[i]._x < arr[i-1]._x )
{ arr[i].x = null;
arr[i].y = 6 * signer;
}
else if(arr[i]._x < tempstore.x && arr[i]._x > arr[i-1]._x ){
arr[i].x = null;
arr[i].y = 6 * signer;
}
else if(arr[i]._y > tempstore.y && arr[i]._y < arr[i-1]._y){
arr[i].y = null;
arr[i].x = 6 * signer;
}
else if(arr[i]._y < tempstore.y && arr[i]._y > arr[i-1]._y ){
arr[i].y = null;
arr[i].x = 6 * signer;
}
}
}
Real Snake Following Mouse
Hiya,
I have this snake following the mouse I need this to follow a path either with code or with a tween to make it move across the stage without the mouse.
Thanks in advance.
Flash CS3
How To Make A Line Snake Over To A New Object.
I would like to make an intro starting with a picture fading in and then a line appearing next to the picture which kind of (snakes) or zigzags to the next image and stops at the image and fades away...using flash 5.
[f8]Scripting Curvy Snake Movements..
Hi guys,
Wondering if anyone has any idea how to script a curvy snake-like movement to a line?
I'm using curveTo to control my lines, but i can't seem to get a snakey movement.. Any tips?
And curveTo makes a C-curve, but i would think that snakes have a S-curve shape?
Thanks.
How Can I Make Text Move Like A Rubber Snake?
I'm brand new to Flash - just a few days - and would like to know how to make the word FLEXIBLE wiggle or look rubbery - I would also like to know how to combine effects on text, like make some text expand and then explode for example. I can't find anything in my book about combining effects... can someone give me some hints please?
Thanks,
Valorie
The Best Way To Make A Snake "crawl" Frame By Frame ?
Hi again...
i am trying to make a network cat5 cable "slide" into the stage like a snake but chopping up the snake and motion tweening each segment is not really having the effect i'm after is there something that i should know to make this little project more pleasing to the eye.
while i get back to the chopping board...
Again i thank you for your time
Ramsey
-------------------------------------
Laughing out loud every day,
keeps the doctor away....gotoAndPlay
-------------------------------------
Needs EXPERT Help: 1. Save Game For Replay, 2. Reset Game
I'm rather new to Action Script, but doing not bad. I have searched the Board, found a link to a tutorial on ActionScript[Org], titled: "save a local copy of file". But that was yet not clear enough for me.
2 Questions at the moment (files attached):
1. Save Game for Replay: How can I save the set to a file in the Same Folder so it could reload for further play from that point on?
2. Reset Game: How can I Reset the Game for a NEW Attemp? I need to remove all Actors at once, to start a new game, without closing this SWF and reopenning it.
If you'd be so kind as to explain very clearly, and add Action Script, taking into consideration that I still get confused by trying to deal with Arrays and so. I promise to study your lesson carefully - this GameTest attached is the fruit of this week studies.
THANKS A LOT
Nit Kalish
Flash Game Help The Game Runs Too Slow In A Browser
lo there!
I'am so frustrated!
I have made a plattformgame in flash, and after I had published it I tested it (local) when it was embedded in a browser, and it hacks and laggs! But when I play it in the flash player it works just fine.
What should I do?
I removed all the heavy graphics, lowerd the fps to 30fps and removed all the code so now its just the bassis left (gravity, collision, key checking etc. and yes u should bounce on the walls giving a wall jump effect).
Anyone please! I am in big need of help!
Is it my code? Did I publish it wrong?
here are the links:
http://smh03.lbs.se/smh03niklas/prof...ofilbollen.swf
http://smh03.lbs.se/smh03niklas/prof...ofilbollen.fla
http://smh03.lbs.se/smh03niklas/prof...filbollen.html
//Qui
How To Disply Time In Game And How To Stop After The Game..
Hi all,
i need help on drag and drop game...
i have done the drag and drop function, for this game timer has to be shown, after user finishes the drag & match, it should give finish alert and time taken for this game (please tell me also how to stop time after he finish the game) is to be sent to some external file or some database...
can it be done?
i have attached the .fla file also..
[F8] Game Studio Needs Flash Game Programmer
Hi -
I've been working on cartoon Flash interfaces for awhile. Now my clients want games, so I'm looking for one or two Flash game actionscripters who can help out and maybe start a studio. Since it's a startup, I'm looking for someone who's good, but not yet making millions - hoping we can do that ourselves eventually. Someone dependable, easy-going and easy to get along with. Would be great to find someone relatively local, but not absolutely necessary.
We'll be creating custom Flash games for an existing client.
Hoping to check out people's games first.
J.
[F8] How Can I Make A Game With Levels And A Game That Restarts?
I know this sounds stupid, but I just can't figure it out. I need to make a platform game. I'm fine with making a points system and a scrolling background and it functions but I don't know how to get the player to touch an object, or reach a goal and then transport to another level...I don't want to make the user have to click something to go to a new level.
Also, when the character hits an enemy, I can make it die, but I don't know how to make a button or something appear saying 'Game Over - Try again', so they can pretty much restart the level.
Hopefully someone can help me.
Regards,
Andrea
Help With A Game.. Game Is Running Slow In Browser..
I am working on this game for work and for now all i have is placeholder art for the most part and nothing very heavy on the graphics end yet my game is running very slow.. i bumped the FPS to 60 since at 30 i was getting image tearing or a double vision effect.. the upped FPS fixed that but the game is still running very slow. To give you an idea of what's going on i have different intervals running so different things can happen at different times.. there are 2 constant onEnterframes for the 2 enemies flying around the screen.. there is 1 for the main loop, 1 for the character, 1 for whenever tickets generate which removes itself and deletes the enterframe when they disappear, 1 for the wrecks that occur on level 2 which also remove themselves and delete enterframes for themselves, and 1 for a holder that handles all the money flying in which removes themselves as they collide with the player or leave the screen. All enterframes that run during gameplay delete themselves at the end of each level and re-initialize at the beginning of the next.
I can't figure it out.. please take a look at the fla and html files attached. Could it be just the sheer size of the game screen.. should i make it about half the size?? I appreciate any help and thank you.
Also the game's scripted animations seem to be running a little choppy if you watch their movement closely like there is a little glitchy jump every second or so.. is this fixable?
AS Help Needed In Game(i Will Give Credit In Game If You Help)
ok so basicly this is my game so far
23.swf
my probelm is that i want to make my charcter a flame and the tips of his head will move depending on the direction you are going.
So here is basicly this what its like
Moving left-Flames bend to right
Moving left and down-Flames bend at an angle between the left and down
Moving Down-Shorter Flames
Moving Up-Stretched Flames
etc...
ill put borders on after i get the flames down
Updating Game Stats During Game
B"H
hi - happy new year
i have a small problem - i run a college sports website - i want to update game stats during the game and ppl would go my website and access the stats as i type them - they are in microsoft database and i have php cgi flash mysql on my server (just not asp) and i want it to be that as i type the scores and then switch cells w/o uploading the new file - flash could still access the files from my computer and update the page auto - (it could load the files from my i.p. addy)
what is the best way to do this - do you have any examples?
thanks
yechi
Save Game/load Game
How do you get the browser to remember all the variables and what point you're in on the timeline when you press "Save Game," and how do you get it to reload those variables when you press "Load Game." Is this some extremely complicated process?
How To Save A Game And Load A Game?
I don't know the codes that can make a game can be saved and be loaded. I have been trying out some codes but they doesn't work. So, can anyone help me please? Im using Flash MX 2004 and Im doing a standalone game.
So, how to make it? Can teach me step by step? Please??
Card Game (turn-based) - Lobby Room And Game Room, Maintain State
Hi all, I´m new in this forum, since now i appreciate for any help.
I´m developing a turn-based card game in Flash 8 (multiplayer), using the concepts of lobby and room. In this case when the user login de game, he always see the lobby, where he can choice the games, then the user selects a game in a dataGrid and enter the game.
Inside the game (that resides in another frame in my .fla), there is a button that when clicked brings de users to the main lobby ( gotoAndStop(“lobby”) ) so that the user can visualize the lobby with the game running in background with the others users.
The problem is when the user return to the game ( gotoAndStop(“game”) ), the images, cards, players name and chat history text disappear, all the game object disappear, remaining only the original graphics (movie clips) to the game room.
In fact, I need a solution to maintain the state of the game when the user decide to visualize the lobby (with the game running) and after return to the game.
Thanks for any help.
Regards,
Luiz Filipe (CURURU)
Os: Sorry for my bad english -
Game Control Panel --> How2make Object Appear In Control Once Discovered In Game
Hey all you flashies,
here's a problem to scramble the flash nerves. I'm creating a game for my Major project and I want to have a control panel at the bottom. The aim of the game in brief, is to collect 6 pieces of fruit (just an example). These 6 pieces of fruit will be found in different order depending on which route the player takes in the game. What I want to happen is each time the player finds a fruit, I want it to appear in the control panel. How do I go about doing this? Can anyone help? Much appreciated! If anyone has an example to something similar to this it would be much appreciated if I could see it! thanks!
My Game....matching Game.
this my example for my game that i have create,can anyone help me and what really wrong with my game,coz the picture not appear went i execute this file.......really need help on this
[F8] Tips On This Game?(my First Game)
I'm making this here game where you walk around a shop, check out the games and movies etc... in the aisles and if you want to buy one, a form gets sent to me. Also there's a TV room with some videos and arcade room with flash games. I did this cause i'm selling my games and movies etc... and i thought this would be useful.
So any tips about how to improve it? what more to add?
Game Help(project Game)
Ok I make a simple game but I need more people in my game project take me contact in e-mail.Now I show what people I need.First I need good actionscripts people.I need only good actionscripts people ty and goodbye.
|