About flash Board game

Hi all , i wanna ask a question regarding flash board game.
i have an online flash application of chinese checkers board
games that can be allowed up to 12 games rooms maximum.
The question i wanted to ask is that if i got 12 game rooms ,
do i need 12 different swf files for 2 players , another 12
different swf files got 3 players , another 12 different swf files
for 4 players and 6 players ?
Please someone can enlighten me ? thank you

I think this has more to do with the domain logic (how you
structure your game and what you want it to do) than it does
ActionScript.
There is no reason you couldn't write a chinese checkers game
with a dynamic amount of rooms all in one swf.

Similar Messages

  • About MultiplayerOnline Flash Board game

    Here is my three tier applcation:
    Client Layer : Flash AS3
    Application Layer: Asp.net
    Database Layer: SQL Server
    i have created my websites for asp.net, game programming has
    been done, but the only problem is i want a real time basis for
    creating a MMO Flash board game. But, how am i going to do that? I
    tried webservice package, but It only have PULL technology which is
    not suitable for real time basis. Is there any good ideas on what i
    should use? i heard about Sockets, XMLSockets, .NET Flash
    Remoting..but i am confused on what to use.

    Basically you can use anything that uses the rtmp protocol,
    like FMS, Red5, Wowza, SmartfoxServer and you can have a look at
    WebORB, a remoting package that also has a Publisher/Producer
    (comes in a .net flavor too).

  • Creating Flash Board Game (Multiplayer online)

    Hi,
    Right now i am doing on a project on Chinese Checkers which
    have 2 players, 3 players, 4 players, 6 players. I used SQL Server
    as database. game programmed in AS3, and i used web services to
    connect them. I used Timers to get data Consistently as Web
    services does not support data push like flash remoting. Due to
    budget issue, i have to use web service in my project for
    educational learning.
    I have created game lobby in flash, where user can chat, see
    whose online, and create or join game. One main question: Can i do
    all of them in frames without using external actionscript
    files?like coding in first frame.
    1st swf: Game Lobby --> press create button --> 2nd
    swf: Game Create Border -->3rd swf: Press 2 , 3 ,4 or 6 players
    button -> 4th swf: Game.

    an as2 swf will work when loaded by an as3 swf. the two can
    communicate using the localconnection class.

  • Flash Board Game - If a player's destination space has a player on it already, move one more space.

    I have been struggeling with this for sometime and I am totally stuck. In my flash boardgame I am trying to make players unable to land ontop of each other. The code I am currently using compares the current space of Red Player comparing it to where the other player is. What I need to know, is how do I make it compare Red Player's target space to the other player's current space.
    function moveRedPiece():void
              trace("Spin Complete");
              for (var i:int = 0; i < numberOfMoves; i++){
                        currentSpaceRed += 1;
                        if (redArray[currentSpaceRed].x == p1.x && redArray[currentSpaceRed].y == p1.y && i == numberOfMoves - 1) {
                                              currentSpaceRed +=1;
                                              trace("RED BUMP");
                        else {
                                              trace("not landing on blue");
                        while (currentSpaceRed >= redArray.length) {
                                              currentSpaceRed -= redArray.length;
                        redtargetX = redArray[currentSpaceRed].x;
                        redtargetY = redArray[currentSpaceRed].y;
                        plasticUpSound.play();
                        var redTween:TweenMax = new TweenMax(p2, 1.5, {x:redtargetX+3,y:redtargetY+4,ease:Expo.easeInOut, onComplete:dropMeRed});

    each space should have a variable that indicates if it is unoccupied or occupied by red or occupied by the other player.

  • Question about creating a traditional board game with

    I'm creating a classic board game (i.e. monopoly, sorry,
    mouse trap) where the users will move based on the random result of
    a roll of dice. The board has 100 squares that the piece can land
    on.
    What's the best way to give all 100 squares a value so that I
    can take the current value of the player piece (movieclip) and add
    the result of the dice roll?
    Thanks in advance for your assistance.
    Note: I'm developing this game for Flash Lite.

    use array t store value of squares n then add the
    corresponding value t the value of dice generated randomly using
    math.random fuction. -- atulag

  • Flash as2 game animation, problem.

    hello i am making a flash animation game but i have a problem, i have my guy running and everything its all gifs, so when he stops its a gif its not one picture its 4 of em (gif) which i made them all compressed into a gif and added to my library then added that to my flash made it work blah blah blah-
    well my problem is when my guy runs left he turn right after i let go of the key i no whats it is doing it using my 1 animation i have in their for standing  i to add my other animation which he standing left basically he runs left after i press left then i let go he turns right, i need to know how to make it so either when i let go of the (LEFT) key it uses my animation ('still2') which is him facing left which i need i have him running right and he stays right after so thats good, or if u know if theres a way i can make the code say like after i let go of like left it uses gotoAndStop('still2') then for running right it uses gotoAndStop('still') so he dosent turn around after i let go of left! well i hope u can find out, and its all animated, so dont just make it so it dosent stop using the animation of left or right, cause then hes running in place for enternity thanks heres my code.
          var rollSpeed = Number=14;
         ichigo_mc.onEnterFrame = function() {
          if (Key.isDown(Key.RIGHT)) {
           this._x += rollSpeed;
           this.gotoAndStop("right");
          } else if (Key.isDown(Key.LEFT)) {
           this._x -= rollSpeed;
           this.gotoAndStop("left");
          } else {
           this.gotoAndStop("still");

    no its actually not a school project just i want to know how to make a game, and i dont know really anything about flash, but i have in my picture of my guy another layer so theres each indivudual layer like i have in my pic of my guy the still still2 running animation 1 n 2 and both my attack things, if you would to see my project so far ask me and i send the file and it should show my guy and his animations...
    heres my code so far.. idk y but i like putting at the end
       var rollSpeed = Number=14;
         var facingRight = true;
         ichigo_mc.onEnterFrame = function() {
          if (Key.isDown(Key.RIGHT)) {
           this._x += rollSpeed;
           this.gotoAndStop("right");
           facingRight = true;
          } else if (Key.isDown(Key.LEFT)) {
           this._x -= rollSpeed;
           this.gotoAndStop("left");
           facingRight = false;
       } else if (Key.isDown(Key.SPACE)) {
        this.gotoAndStop("atack2");
          } else {
           if (facingRight) {
             this.gotoAndStop("still");
           } else {
             this.gotoAndStop("still2");

  • About Flash technology

    Hi all
    I'm a java game developer and I really like Java but I'm
    seeing the Macromedia really got to make its client the best for
    internet media and gaming. I'm thinking of migrating.. but I'd like
    to know some things.
    Where can I find reference on integrating flash with direct
    x?
    Is flash able to connect to a server regardless of what
    language my server was developed?
    Where can I find a good flash programming forum?
    If you can comment about other advantages of flash on game
    programming I would appreciate
    Thank you all in advance

    Hi all
    I'm a java game developer and I really like Java but I'm
    seeing the Macromedia really got to make its client the best for
    internet media and gaming. I'm thinking of migrating.. but I'd like
    to know some things.
    Where can I find reference on integrating flash with direct
    x?
    Is flash able to connect to a server regardless of what
    language my server was developed?
    Where can I find a good flash programming forum?
    If you can comment about other advantages of flash on game
    programming I would appreciate
    Thank you all in advance

  • Pogo board games. What they are using?

    Hi,
    I been to Pogo.com and tested board games. All are made with JAVA.There games are 2D.
    1 - Can some one tell me what mix of techonologies they are using. Board, Poker games? .
    2 - Can we made these games with Java 2D library?
    3 - What multiplayer server they are using for multiplayer games. Any idea?
    4 - How do you find creating games with Java 2D instead of flash (any idea). Is it easy to use 2D library?
    5 - If we use 2D library than we need to know Java to work on that?
    thanks in advance.

    Pirzada wrote:
    Hi,
    I been to Pogo.com and tested board games. All are made with JAVA.There games are 2D.
    1 - Can some one tell me what mix of techonologies they are using. Board, Poker games? . Well, I would think you have answered your own question before you have even asked it--Java.
    2 - Can we made these games with Java 2D library?Yes.
    3 - What multiplayer server they are using for multiplayer games. Any idea?Are you asking if there are multiplayer gaming engines that you can incorporate into your software instead of programming it yourself?
    4 - How do you find creating games with Java 2D instead of flash (any idea). Is it easy to use 2D library?You lean Java, study the tutorials on Graphics and 2D, then write what you like.
    5 - If we use 2D library than we need to know Java to work on that?Ummm... well, yes, of course: do you have to know French to speak it?
    thanks in advance.

  • Playing flash based games on the ipad2?

    My daughter plays Moshi monsters on our mac book, I believe this is a flash based game, will she be able to play it on an ipad?Playi

    People are too quick to comment about Flash.  If your daughter plays Moshi Monsters Mouthoff, it is indeed available in the App Store for $.99 as a download.  It will certainly play on an iPad, though it was not optimized for it.  It will occupy less space on the screen, but you can simply use the 2X button on the bottom right hand corner to enlarge it to fill the full screen.

  • Creating a board game

    I'm making a "board game" in Flash with Actionscript 3.0.
    When the player lands on a certain space, I want a window to pop up
    & they complete a word search game. The faster they complete
    the word search, the more points they would earn. I already have it
    working so that the word search swf pops up at the right time, but
    I'm not sure how to grab the time they completed the game in &
    send it back to the main movie. I got the word search code from
    here:
    http://www.subtangent.com/flash/
    and it's written in Actionsript 2.0. Is it still possible to use
    both together? If so, how can I send the time back to my main movie
    to figure out their score?
    Thanks,

    an as2 swf will work when loaded by an as3 swf. the two can
    communicate using the localconnection class.

  • Tables and Rounding Errors on Board Game Gui

    Hello,
    So I am in a software development class , and my team and I are developing a software version of a board game that uses numbered tiles placed on a board in a somewhat scrabble-esque way.
    Here is a picture of the game board:
    [http://img90.imageshack.us/img90/1052/untitledqv3.png|http://img90.imageshack.us/img90/1052/untitledqv3.png]
    Currently, a problem that we are working on is that as the tiles get further and further away from the center of the board, they are displayed further and further askew from the board lines. I have another picture to demonstrate what I'm talking about more clearly.
    [http://img225.imageshack.us/img225/4605/untitled2nn0.png|http://img225.imageshack.us/img225/4605/untitled2nn0.png]
    As the tiles get further away from the center, they are displayed more askew.
    We think that this happens because we are using a gridbag layout to add tile objects to, which displays the tiles in a certain spacing and orientation, and then we draw the board ourselves. When we draw the board, we get rounding errors inherent in the use of ints, and the lines become a bit off, with the problem getting worse as it gets further and further away from the center.
    Here is the code that we use to initialize the layout and add the tiles to it:
         //set the layout
    setLayout(new GridLayout(7, 7, 7, 7));
    //initialize the array with the references to all the tiles that we are going to add
    //to the layout
    squares = new SquareView[7][7];
    for (int i = 0; i < 7; i++) {
         for (int j = 0; j < 7; j++) {
              //create the tile, put a reference to it in the array
              squares[i][j] = new SquareView(boardModel.getSquare(new Point(j, i)), listener, handler);
              //add the tile to the layout
              add(squares[i][j]);
    }And here is the code that we are using to draw the lines for the board:
    GridLayout layout = (GridLayout) getLayout();
    //getting the dimensions of the board
    int rows = layout.getRows();
    int columns = layout.getColumns();
    int width = (getWidth() / columns);
    int height = (getHeight() / rows);
    g2.drawImage(backgroundImage, 0, 0, getWidth(), getHeight(), null);
    for (int i = 0; i < 8; i++) {
         // Vertical lines
         g2.drawLine(i * width, 0, i * width, rows * height);
         // Horizontal lines
         g2.drawLine(0, i * height, columns * width, i * height);
    }I think that our problems come from the innacuracy of ints, but if there is some addition or subtraction trick that we could pull, then let me know.
    Also, I was sort of looking into tables, and I was wondering if maybe we could use tables to do this, and have Java do our resizing for us.

    j.law wrote:
    We think that this happens because we are using a gridbag layout to add tile objects to, From the snippets of code, it's looking as though you're using GridLayout. But that's OK as GridLayout should work fine here.
    GridLayout layout = (GridLayout) getLayout();
    //getting the dimensions of the board
    int rows = layout.getRows();
    int columns = layout.getColumns();
    int width = (getWidth() / columns);
    int height = (getHeight() / rows);
    g2.drawImage(backgroundImage, 0, 0, getWidth(), getHeight(), null);
    for (int i = 0; i < 8; i++) {
         // Vertical lines
         g2.drawLine(i * width, 0, i * width, rows * height);
         // Horizontal lines
         g2.drawLine(0, i * height, columns * width, i * height);
    }I have no idea of this will improve things, but what about:
    GridLayout layout = (GridLayout) getLayout();
    int rows = layout.getRows();
    int columns = layout.getColumns();
    double width = (getWidth() / columns); //** how about using doubles here
    double height = (getHeight() / rows);  //** how about using doubles here
    g2.drawImage(backgroundImage, 0, 0, getWidth(), getHeight(), null);
    for (int i = 0; i < 8; i++) {
         // Vertical lines
         g2.drawLine(i * width, 0, (int)(i * width), (int)(rows * height)); // and casting?
         // Horizontal lines
         g2.drawLine(0, (int)(i * height), (int)(columns * width), (int)(i * height));
    }

  • Making a Board Game

    I wasn't really sure where to place this thread but here goes. I want to make a simple board game (Checkers or maybe Chess) in two player mode only (One player will come later). I am not sure how exactly to go about it. Are there any special methods or classes I have to implement? I would like to build it so that the pieces, when released, go to the center of the square they are held over. Does this involve any special mapping of the board image? Would it be better to create the board in a paint program and implement it that way or should I use java.awt.geom to do that? And since I don't want to copy somebody else's chess pieces (that would be cheating) is there a way, in java, to create images like that? and if not what imaging program should I use (definitely not adobe photoshop)? Should I even be attempting to do this kind of thing yet?

    Here is the code I have so far:
    import java.awt.geom.*;
    import java.awt.*;
    import javax.swing.*;
    public class JChess extends JPanel {
        BasicStroke three;
        public JChess() {
         super();
        public void paintComponent(Graphics g) {
         Graphics2D g2d = (Graphics2D) g;
         three = new BasicStroke(3);
         g2d.setColor(Color.white);
         g2d.fillRect(-100, -100, getSize().width + 100, getSize().height + 100);
         g2d.setColor(Color.black);
         g2d.setStroke(three);
         g2d.translate(75, 75);
         g2d.drawLine(0, 0, 600, 0);
         g2d.drawLine(0, 0, 0, 600);
         g2d.drawLine(0, 600, 600, 600);
         g2d.drawLine(600, 0, 600, 600);
         //first row
         g2d.fillRect(0, 75, 75, 75);
         g2d.fillRect(0, 225, 75, 75);
         g2d.fillRect(0, 375, 75, 75);
         g2d.fillRect(0, 525, 75, 75);
         //second row
         g2d.fillRect(75, 0, 75, 75);
         g2d.fillRect(75, 150, 75, 75);
         g2d.fillRect(75, 300, 75, 75);
         g2d.fillRect(75, 450, 75, 75);
         //third row
         g2d.fillRect(150, 75, 75, 75);
         g2d.fillRect(150, 225, 75, 75);
         g2d.fillRect(150, 375, 75, 75);
         g2d.fillRect(150, 525, 75, 75);
         //fourth row
         g2d.fillRect(225, 0, 75, 75);
         g2d.fillRect(225, 150, 75, 75);
         g2d.fillRect(225, 300, 75, 75);
         g2d.fillRect(225, 450, 75, 75);
         //fifth row
         g2d.fillRect(300, 75, 75, 75);
         g2d.fillRect(300, 225, 75, 75);
         g2d.fillRect(300, 375, 75, 75);
         g2d.fillRect(300, 525, 75, 75);
         //sixth row
         g2d.fillRect(375, 0, 75, 75);
         g2d.fillRect(375, 150, 75, 75);
         g2d.fillRect(375, 300, 75, 75);
         g2d.fillRect(375, 450, 75, 75);
         //seventh row
         g2d.fillRect(450, 75, 75, 75);
         g2d.fillRect(450, 225, 75, 75);
         g2d.fillRect(450, 375, 75, 75);
         g2d.fillRect(450, 525, 75, 75);
         //eighth row
         g2d.fillRect(525, 0, 75, 75);
         g2d.fillRect(525, 150, 75, 75);
         g2d.fillRect(525, 300, 75, 75);
         g2d.fillRect(525, 450, 75, 75);
    }As you can see I don't know what I am doing or what I am supposed to do LOL. = )

  • Board Game problem

    Hi!
    Im creating a board game and I'm having a problem. The aim of the game is to eliminate the opponent's pieces. Each time a player gets a three in a row of pieces, they are allowed to remove any one of the opponent's pieces.
    My problem is this: If a player gets a three in a row, in his next two moves I want to disallow him moving one piece out of this three in a row and then back into it so as to try and remove another of the opponent's pieces with the same three in a row.
    Here is the Player Class
    public class Player
         char piece;
         String name;
         int numberofPieces;
         Player(char pieceVal, String name){
                   this.piece=pieceVal;
                   this.name=name;
                   numberofPieces = 5;
    }So when a player gets three in a row, I want to record his 3 in a row, and watch his next two steps and prevent him from having the same 3 in a row after 2 steps.
    Can anyone help me? It has been wrecking my head for 2 days now!!
    Thank you.

    How about keeping a turn counter as well as the coordinates of the pieces in the player's last 3 in a row?

  • I have recently purchased my I PAD2 and would like to know about  flash player

    I have recently purchased my I pad and would like to know about Flash Player  and  what to download if any
    thanks

    Skyfire web browser is the most popular app that will allow you to view Flash content on many, but not all websites.  iOS devices don't support Flash natively due to stability and battery drain issues.  It's agood move overall, and most websites send HTML5 content to iOS devices.  But the transition isnt complete, so you'll still find that you can't view video on some sites.
    Flash based games are pretty much out.

  • Flash player games, video, or audio don't work / Windows

    I have been having issues with my flash player for about a week. I tried all the trouble shooting steps under flash player games, video, or audio, but the issue kept occurring. I successfully uninstalled the flash player, then reinstalled it, the issue keeps occurring, so I followed the trouble shooting steps again, and it keeps occuring. For example, I will be watching a video, then it will spontaneously restart, jump to the end, image distortion, or freeze and the flash player stops responding et cetera. I think it might be what is causing an update error on a game that I play as well, where the game launcher is unable to decrypt and deserialize the download content from the server, or maybe something else is causing the flash player, and the game launcher to have these issues. Hopefully someone has some useful tips to resolve this issue that I haven't tried yet. Thank you for your time.

    I myself have a problem with firefox after installing this no videos run etc

Maybe you are looking for