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.

Similar Messages

  • 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.

  • How to create board game in InDesign

    I
    am trying to create a board game in InDesign, similar to the trivial pursuit board game. In other words, an outer wheel that has been
    divided up in sectionsand then spoes to the center. I think I can figure out how to do the spoes and the center, but I am having problems doing the outer wheel.
    Any ideas? Should I be doing this in photoshop instead?
    Thanks,
    FG

    Pretty much the same thing in Illustrator or ID, but Illy has more sophisticated drawing tools, including things like polar coordinates and duplication that will allow you to drag a copy of one of the line segments around an arc, then repeat at the same angle.
    In any case, you want to make two concentric circles, then draw a series of radial line segments between them. I'd then select all and creat a compound path.

  • 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?

  • Cerating a board game

    I am creating a board game using net beans ide 5.0. I really don't undestand how to catch the mouse click event.can some one
    send me a url or some way to implement this game.
    And also in my program once click in a box in game i need to dispaly a image on that box. can some one help me. Any one know how to implementing this in web services

    double post
    http://forum.java.sun.com/thread.jspa?messageID=4350445

  • 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

  • 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.

  • 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).

  • 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. = )

  • How do I create a new game center id for my own games

    My kids have many games on my phone (4s) how do I create a new Game center id and load some of the same games as my own?

    You can change the account by tapping or clicking Account and then signing out of the current account and into the new one(Apple ID).

  • My two iPads share an Apple ID.  How can I create a separate Game Center account so they can play each other?

    My two iPads share an Apple ID.  How can I create a separate Game Center account so they can play each other?

    1. This is a year old post.  Things have changed, the answer is no longer accurate due to how the OS functions now.
    2.  You can't have a second Gamecenter account tied to the same Apple ID, because the Apple ID is the game center account.  They are not separate things.
    3. The OP said they had 2 iPads, which means they can use a different Apple ID for Gamecenter on the second iPad.
    4. You can still creare Apple ID's specifically for game center without changing them for the other services on the other devices.
    ronjack wrote:
    I have the same issue.  Young children who cannot get Apple ID's but we all want separate Gamecenter accounts.
    You need to get Apple ID's for them.  They aren't getting them, you are. You can manage these new ID{s yourself. You can even make sure they have no credit card and are not associated with any other service on the device. So essentially they are Apple ID's for GameCente only.

  • 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.

  • I create a mobile game. How to get the signing key?

    I create a mobile game. How to get the signing key? Is the certificate is payable? Sorry if the topic is in the wrong section.

    You need to be an iOS/Mac OS X developer.
    https://developer.apple.com/devcenter/

  • GridBagLayout to create a board

    Hi all.
    I am using a GridBagLayout to create a board of 11x11 squares. These squares will be buttons, and all will be of the same size. But it has to be like a board made of bricks. The first row will be formed by 11 buttons. The first square of the second row has to start in the middle of the first square of the first row. The third row will be as the first row, and the fourth row as the second row...
    My intention has been to use a GridBagLayout where the grid were formed by 11x21 squares, and each square will use two cells of width. I was thinking of putting the first button on the (0,0), the second on the (2,0), (4,0) ... (20,0).The first button of the second row on the (1,1), the second button of the second row on the (1,3)... (1,21).
    This is what I have used:
    import gato.PanelGato;
    import java.awt.Dimension;
    import java.awt.GridBagConstraints;
    import java.awt.GridBagLayout;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    public class ButtonTest {
         private static PanelGato panel;
         public static void main (String[] args) {
              panel = new PanelGato();
              panel.setLayout(new GridBagLayout());
              JFrame frame = new JFrame ();
              createPanel();
              frame.setPreferredSize(new Dimension(800,800));
              frame.add(panel);
              frame.pack();
              frame.setVisible(true);
         public static void createPanel () {
              GridBagConstraints c = new GridBagConstraints();
              for (int i=0; i<11; i++) {
                   int modOdd = 0;
                   if (i%2==1)
                        modOdd = 1;          
                   for (int j=0; j<11; j++) {
    //The 11 squares of a row are created here. gridy = the number of row, gridx = twice the number of row (+ 1 if it is a even row)
    //The gridwidth = 2 because I want the buttons to use two cells.
                        c = new GridBagConstraints();
                        c.gridy = i;
                        c.gridx = 2*j+modOdd;
                        c.gridwidth=2;//case B: c.gridwidth=1
                        panel.add(new JButton(),c);
    }The result is a simple board, where the second row starts in the same place as the first row, and all the board is a square.
    In the case B, where c.gridwidth=1, the result is like a chessboard where the buttons are only the black squares. It is not a "brick board", because the first button of the second row starts where the first one of the first row ends.
    Could anyone help me?
    Thank you very much for reading it :)

    A column (or row) in a GridBagLayout is not well defined unless there is at least one component which occupies only that column (or row). All your rows have components spanning 2 columns.
    For the "brick wall" layout you want, IMO the best way to do this is by adding a dummy row with weighty=0 so it doesn't occupy vertical space.public class BrickWall {
       private JPanel panel;
       GridBagConstraints gbc;
       public static void main(String[] args) {
          SwingUtilities.invokeLater(new Runnable() {
             @Override
             public void run() {
                new BrickWall().makeUI();
       public void makeUI() {
          panel = new JPanel(new GridBagLayout());
          gbc = new GridBagConstraints();
          gbc.fill = GridBagConstraints.BOTH;
          gbc.weightx = 0.1;
          gbc.gridx = 0;
          gbc.gridy = 0;
          gbc.gridwidth = 2;
          gbc.weighty = 0.1;
          for (gbc.gridy = 0; gbc.gridy < 11; gbc.gridy++) {
             for (gbc.gridx = 0; gbc.gridx < 21; gbc.gridx += 2) {
                if (gbc.gridx == 0 && gbc.gridy % 2 == 1) {
                   addFiller(); // not strictly necessary
                   gbc.gridx++;
                panel.add(new Brick(), gbc);
             if (gbc.gridy % 2 == 1) {
                addFiller(); // necessary!
          gbc.weighty = 0.0;
          for (gbc.gridx = 0; gbc.gridx < 21; gbc.gridx++) {
             addFiller();
          JFrame frame = new JFrame();
          frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          frame.setSize(400, 400);
          frame.add(panel);
          frame.setLocationRelativeTo(null);
          frame.setVisible(true);
       private void addFiller() {
          gbc.gridwidth = 1;
          panel.add(new JPanel(), gbc);
          gbc.gridwidth = 2;
       class Brick extends JPanel {
          Brick() {
             setBackground(Color.PINK);
             setBorder(BorderFactory.createLineBorder(Color.RED));
    }Note: Next time, post compilable code. We don't have your PanelGato class to test your code.
    db

Maybe you are looking for