User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 15

Thread: Grid movement for a board game?

  1. #1
    No Products Registered

    Join Date
    May 2010
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Grid movement for a board game?

    How would you do a grid movement for a board game?

  2. #2
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: Grid movement for a board game?

    It would be useful to have a global value and rename it to Grid Size, then set it to the size of the grid. Also you can use MMF2's grid features to help with design.

    The movement depends on what you want. If you want it to snap to each tile, or move smoothly from tile to tile, that's different code. What do you want?
    Working as fast as I can on Fusion 3

  3. #3
    No Products Registered

    Join Date
    May 2010
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Grid movement for a board game?

    I thought of a board game based on a book series about a year ago but I was too lazy to make it. I'm thinking snap to each tile, the tiles are next to eachother there's a little space in between each. And you don't control where your player goes. You pick a card and the player will lose health, or go forward a few spaces, etc. depending on what's on the card.

  4. #4
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: Grid movement for a board game?

    OK, cool. So, it's literally like a board game. Neat! It's pretty simple really, you just need some detectors for changing directions on corners and such, and you can move it by setting its position relative to it'self.

    EG: If Direction is facing down, set Y position to Y Position + Grid Size

    When it overlaps a detector, and only one action on event loop, you can check it's direction and detirmine which way it needs to turn on the corner. EG if it is a top right corner, it may need to turn down or turn left.

    You will also maybe want to hav delay between each snap of the movement. This can be done with some counters to count down the number of spaces left, and some use of the Restrict Actions for blah blah amount of time condition.

    If you need help with specific things feel free to ask
    Working as fast as I can on Fusion 3

  5. #5
    No Products Registered

    Join Date
    May 2010
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Grid movement for a board game?

    so...... basicly when you're on the space it starts a new set of actions depending on what space you're on and those actions depend on the card?

  6. #6
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: Grid movement for a board game?

    That's what you said, isn't it?
    Working as fast as I can on Fusion 3

  7. #7
    Clicker Fusion 2.5iOS Export ModuleXNA Export Module

    Join Date
    Oct 2009
    Location
    Jacksonville, TX
    Posts
    96
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Grid movement for a board game?

    Have you looked into using Easy Grid? I am finding it to be helpful with grid movements I am working on. Also I am using MoveIt to get the sprites to move smoothly from space to space.

  8. #8
    No Products Registered

    Join Date
    May 2010
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Grid movement for a board game?

    Well I want to make sure you think it will work first. Also, how would you have the card picked at random? I can't find anything like that in any of the tutorials or in the help files.

  9. #9
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: Grid movement for a board game?

    There are two extensions for this; Random Pool and Random Multipool. You should check them out
    Working as fast as I can on Fusion 3

  10. #10
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    RickyRombo's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere between here and there
    Posts
    3,167
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Grid movement for a board game?

    Or just Random()

    Anyways, why not try the "Advanced Game Board Object"?

Page 1 of 2 1 2 LastLast

Similar Threads

  1. How do you Code a Board Game?
    By redpandagames in forum SWF/Flash Export Module Version 2.0
    Replies: 3
    Last Post: 13th October 2012, 05:04 PM
  2. Board Game Tutorial
    By Jeff in forum News
    Replies: 0
    Last Post: 16th July 2008, 12:06 AM
  3. Movement and game Board Issues
    By RobTheBuilder in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 22nd June 2007, 03:29 PM
  4. Turn-based board game movement
    By MTCMusic in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 11th April 2007, 11:30 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •