Bingo Game Script
Hello, I am horrible at actionscript and I hope some one can point me in the right direction. I basically have a Bingo card with the numbers called already. If the user clicks (marks) the right winning numbers the user wins. How can I program it to see if all the winning numbers have been clicked?
**This is for Flash 6.
Thanks ahead.
FlashKit > Flash Help > Flash ActionScript
Posted on: 01-10-2007, 02:30 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Bingo Game
Hi,
I am trying to develop a bingo game using Flash as frontend . I would like to know as to how to generate tickets randomly and then highlight the number being called if it is present in the ticket. Any help would be greatly appreaciated .
Thank You,
Raja
Bingo Game
Hi,
I am trying to develop a bingo game using Flash as frontend . I would like to know as to how to generate tickets randomly and then highlight the number being called if it is present in the ticket. Any help would be greatly appreaciated .
Thank You,
Raja
Bingo Game
Hi,
I am trying to develop a bingo game using Flash as frontend . I would like to know as to how to generate tickets randomly and Any other help in developing this game would be greatly appreciated .
Thank You,
Raja
Bingo Game
Hello ppl,
I am trying to make a bingo game in flash. I have 100 tickets with 25 numbers each.
each ticket is like a 5x5 matrix
randomly a number between 1 and 75 is called.. I have to traverse all the 100 tickets and mark the number that has been called.
I am using a text area with enable_html set to true. i am facing problems with marking the numbers in tickets
any ideas on how i can go about doing this?
Bingo Game Script
Hello,
I am horrible at actionscript and I hope some one can point me in the right direction. I basically have a Bingo card with the numbers called already. If the user clicks (marks) the right winning numbers the user wins. How can I program it to see if all the winning numbers have been clicked?
**This is for Flash 6.
Thanks ahead.
Looking For Shockwave Flash Bingo Game
I am looking for a Shockwave Flash Bingo game that I could integrate into a web site, sign up users and have multiplayer bingo games. Each user can have an amount of points and such.
For example:
http://www.bingoroom.com
Does anything like this exist that I can buy? How much would it be for someone to create something like this? Thanks.
Bingo Cards
everyone:
i need a hand on this problem is driving me nuts. I'm creating a bingo game and so far the one player interface is done.
I have no clue how to handle multiple cards on the game.
Presently i'm using variables and if's statements.
any ideas would be helpful this task is over my head and i keep searching for ways how to do it. and i'm ready to give up. you guys are my last hope.
thanks for any input
Bingo Machine
Hello all,
Anyone knows where I can find a bingo machine script
to take some ideas? Ex: http://www.flashguru.co.uk/bingo-machine-part-two
Thanks!
neuhaus3000
Flash Bingo
hey guys,
i've been wandering about the net looking for a fla of a bingo game, any one of you have an idea where i could get a good one? the one on flashkit is not that good.
hope u guys could help me.
biggie
Loading Unique Images. (Bingo)
Im making a bingo slideshow using pictures and numbers and I want to randomize the image shown as the user presses next. I just dont want to repeat the image shown. Images would be located in a folder called pics. This is what I have so far.
Code:
getRandomUnique = function (sourceArray, select) {
var myList = new Array();
for (i=0; i<select; i++) {
// generate random array pointer
var randomPointer = Math.floor(Math.random()*(sourceArray.length-1));
myList[i] = sourceArray[randomPointer];
// delete used entries from array
sourceArray.splice(randomPointer, 1);
}
return myList;
};
// -------------------------------------------------------
// use example
testArray = new Array (1,2,3,4,5,6,7,8);
trace(getRandomUnique(testArray,testArray.length));
people_txt.text = getRandomUnique(testArray,1);
// will return 2 random entries from testArray
Difficulty With Random Bingo Card Generator
Hi! I'm trying to generate a random bingo card in Flash using ActionScript. The psudeo-code is pretty sound, I think, but I can't even get the first number onto the card. I'm trying a random number variant with output to a dynamic text field. No success. (Simply no output at all when I run the code...) Thanks!
Here's the code...
// bingoCard.fla
// Jessica S. Hope
// November 6, 2007
// Generate a dynamic ("random") bingo card
stop();
init();
// choose an integer between 1 and 15 for column B
function init (){
number = Math.ceil(Math.random() * 15);
// output to bRow1
bRow1 = number;
} // end init
// REPEAT 4 TIMES TOTAL:
// choose an integer between 1 and 15 for column B
//is it a repeat? if yes, choose again; if no, print output
// choose five integers between 15 and 30 for column I
// choose five integers between 31 and 45 for column N
// choose five integers between 46 and 60 for column G
// choose five integers between 61 and 75 for column O
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
[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(); } } };}
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.
Help Doing Game
Hi everybody!
Can any of you tell me how to do this?
I´m making a game about a space ship which fires a laser and moves around the screen. My problem is that I want it to fight against asteroids, so I need to do that when the laser hits an asteroid it explodes and then appears randomly again in the screen.
I have already solved the part of the laser shot and the part of the spaceship´s movement, but I can´t do the other part right enough!
My problem is when I fire the laser and when it hits the asteroid I can´t duplicate the asteroid Movie Clip.
If anybody knows how to do this or where I can´t download a tutorial I will appreciate it very much!
Thank you very much!
Help With Game...
I'm creating a game for teachers called "alphabet soup".
The letters go into the bowl and the question appears on the left hand side. I then ask the teachers to drag the correct letters into boxes that appear below the bowl.
e.g. This organization is in the sports entertainment business.....W W F. What I want is when the correct letter is placed in a box it turns green, if its wrong the box will turn red. Can anybody help me out with some script for the boxes that will allow me to make a specific letter turn the box either red or green.
Thanks
Mike
Help Me For A Game Plz
Well I've plenty of MC named wall1 , wall2 , wall3......
wall45668789.
I want to make a collision check with a simple MC named Car.
I don't want to make hundred lines like this one :
if ( _root.car.hitTest(_root.map.wall56)){
How can I call every MC with wall in their occurence name.
Something like ["wall"]+i but I don't success.
Thks for all.
Help Me With This Car Game
HI
I'm currently working on this game.
http://www.multimania.com/pio/Game/game.html
but it is f*cking slow on small PC.
I want to put it in intermediate quality but it doesn't work
I've got a little problem with the collision too ( you'll see)
So if someone want to help me a little ( an idea to make it faster than ever !!)
Thks for all
Game Help
im making a game and i dont know how to make it so the guy you move around can go on certain thing, but when he runs into a building or something he stop when hits the wall. thanx for your help
________
Game (oh My God) HELP
Hello world!!
I am making a game, i am very newbie so i need help. What i want is to only get one point when i shoot an enemy, but now i get points when i hit the explotion too. Heres the code for the gunshot:
for (i=1; i<=_root.numEnemy; i++){
if (this.hitTest( _root["enemy"+i]) and thi**** == 0){ <--
thi**** += 1;
_root.score+=random(100);
_root.down+=1;
_root["enemy"+i].play();
_root.spaceship.laserCounter--;
this.removeMovieClip();
}}}
I would apreachiate some answers!!!!
thnx guys!!
-
ZoPhA zopha.cjb.net
[Edited by zopha on 07-06-2001 at 07:56 PM]
Help With Game
Im trying to make a game but im confused by ALL the tutorials. I need a way to make The main guy (A cute little wolfie) Move forwards when you press the Right arrow key and up n down, ect. but i know how to set the speed and how you need that Onclipevent stuff too but I do all of this and it never works...And where are you aspose to type in This._X= ect code anyways ???Im very much confused.....And if its not to much trouble how do you Teporaily disable Keys ?
SOS Game SOS
I need some scripting help... 'please'! I have 6 images, 3 are of pics animals, 3 are the names corresponding to each animal. I am trying to set up a 'MEMEORY game' for small children. Scripting is not my strong point and after 2 weeks of daily digging, I am no closer to the answer. If ANYONE has a moment or two to help me do this in the simplest way I would be EXTREMELY grateful. I just cannot seem to get a handle on how I would write the script and although I DO have some books now, it still isn't making logical sense to me yet. ( If you can help, this would be terrific and very much appreciated believe me! Thx in advance!
Help With Game
Im trying to make a game where you get points for hitting targets. What i need to know is how to do the actionscripting for adding points to the score (which will be in a dynamic text box)
an example or the code would be very helpful!
Help On Game
Help on game
Hi all
I have stage size of 600x300 pixel
I am trying to make man walk on key press(arrow left and right)and jump 20 pixel on key press space.
a little mario bro effect
How do I do this?
PilotX
Game Help, Please ?
Need help in development of game. 5 questions to be answered by user. 1 right answer gives user 1000 points ; rest of the four wrong answers gives user a negetive point (each of a different value). The total points gained and lost is shown at the end thru a dynamic text variable.
The problem is that at the response from the user, a pop-up lets him know whether user was right or wrong. Due to this, the points are getting lost. There is no display of points whatsoever.
HELP PLEASE
Game....
Hello,
I'm making a game, for this discussion let's say it's a little ball, and i have it going through a maze(it'll be kind of like zelda when i'm done), and i give the user control to move the ball. NOw, my problem is that i want to know how i can keep the ball in the constraintls of the maze, so that the person can't like jump over wallz but actually keep in the path, so that when they walk toward a wall the ball just stops. Will i need to plug in these coordinates individually? Or is there another way to do it? If there is could you give me a quick example please?
Thank you all,
phara0h^
Game Help
I have a .swf where a user can drop and drag elements on the screen to make there own picture. Is there a way to save those actions and submit that revised .swf through email or convert .swf to .gif and then email. All entries would be part of a contest.
Any assistance, additional information or other ideas would be appreciated.
Game Help
Anyone here Know how to make virtual cop style games??? I need help with limited ammo and how to make it so you can reload, I'm not to talented with action script but help if you can please...
Web Game
i want to make a web game that involves sending information to other people on the other side of a server. this game is about snipers and u shoot other people on other computors.
HELP ME PLEASE!!!1
Age Game
I have created an age game banner where the viewer must be over fifty to be eligible for a service.
If he is 50 or over he will see one thing. If he is under 50 he will see something else.
I need help with the code so that Flash will recognise that the user has keyed in a number that is smaller than 50 or 50 and over. I can then display the relevant content.
I hope someone can help me. Thanks.
Game Help
I was creating a simple game with the help of Building Games in Flash5 Part1: Player Movement and Fire. I manged to make my footballer move but he can't shoot with with the ball. All it does is at the start is fly across the screen and disappers and i get any more to shoot. Here is the code: The football player is called foot and the football is called laser
Under Foot
onClipEvent (load) {
moveSpeed = 10;
_root.laser._visible = false;
laserCounter++;
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.SPACE)) {
laserCounter++;
_root.laser.duplicateMovieClip("laser"+laserCounte r, laserCounter);
_root["laser"+laserCounter]._visible = true;
}
if (Key.isDown(Key.RIGHT)) {
this._x += moveSpeed;
} else if (Key.isDown(Key.LEFT)) {
this._x -= moveSpeed;
}
if (Key.isDown(Key.DOWN)) {
this._y += moveSpeed;
} else if (Key.isDown(Key.UP)) {
this._y -= moveSpeed;
}
}
Under laser
onClipEvent (load) {
laserMoveSpeed = 20;
this._y=_root.foot._y;
this._x=_root.foot._x=20;
}
onClipEvent (enterFrame) {
this._x+= laserMoveSpeed;
if (this._x>600) {
this.removeMovieClip();
}
}
flash says the script contians no errors. Please reply as soon as you can!
Age Game
I have created an age game banner where the viewer must be over fifty to be eligible for a service.
If he is 50 or over he will see one thing. If he is under 50 he will see something else.
Thanks to the Flashkit boards, I managed to sort this out.
I now have a new problem. If the user types in in letters instead of numbers, I get strange results.
The code thusfar looks like this.
on (release) {
if (parseInt(age)>=50) {
getURL ("http://www.xxxxxxxxxxxx", "_self");
} else {
gotoAndPlay ("Scene 1", "young");
}
}
Can anyone help me?
Thanks.
|