stobbsc's Recent Forum Activity

  • Hi All,

    Hoping someone can help me with a little issue I'm having.

    I'm using Chess and Grid objects to move my playing pieces around a board(Piece A).

    I can work out if the moving piece comes next to another piece(Piece B).

    What I need to know is how to get the details of the piece B I'm moving past.

    So I have instance variables attached to pieces that tell me the type they are, and If I move move past one I want to know what type it is, but not sure how to reference it.

    I've tried things like this but it doesn't work.

    Chess(1,1).PieceType

    Chess(UID).PieceType

    If someone could help me that would be amazing.

    Cheers

    Chris

  • Amazing thanks.

    Yeah I ended up using the move to grid option and storing the x,y position of the logical chess

    Is it possible to move diagnostically with the movement object (moveable path)

    Lastly is it possible to only highly the target destination of the moveable area, instead of the full path?

    for example if I you have 4 squares to move it only highlights the 4th square not the squares in the path?

    Thanks

    Chris

  • Thanks Rex,

    I've managed to just add instance variables so I know what type of piece I'm working with and what player they belong to :-)

  • Finished reading the whole thread and it looks like some amazing stuff going on.

    2 questions.

    What is the easiest way to switch between movable chess tiles?

    At the moment I've saving the x,y to global variables then when moving I'm using the board to pick them and then moving

    Second questions is I've used the movement object to define the movable path then I move the piece but when I use inst->clean it doesn't remove my path tiles?

    Thanks

    Chris

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Hi All,,

    I love the work of Rex and have been learning from hiscode and objects to create my first boardgame.

    What I wanted to know if the movement plugin allows for diagonal movement options?

    Also does it allow you to restrict highlight only the final square (destination).

    So for example if you can move 4 spaces that you can only click on the 4th square not all the squares on the path to the destination if that makes sense.

    Basically I think if I have both those functionalists interchangeable it would be amazing.

    Thanks to everyone in advance.

    Chris

  • Hi All,

    I have a few questions regarding the awesome plugins created here.

    I'm working on extending the moving options demo. This is the one where you click a black chess piece then it shows you where you can move it etc.

    Is it possible to make the layer bigger, when using the board object plug in I can't get a 13x20 board to fit on the layer :-(

    I'm wondering is if I'm approaching this correctly.

    I want to have say 4 pieces for each player, so player one puts down 4 pieces (clicks on four empty squares) and then player two does the same.

    Should I set instance variables on the chess piece to mark it as being P1 or P2 etc. Then then anotehr Instance Variable for setting the piece type?

    Thanks for all your help the first problem is the one I'm struggling with the most.

    Thanks

    Chris

  • Hi All,

    I hope this is in the correct topic, I'm a noob to the forums and Construct 2. I've completed a few tutorials already and now looking at tic tac toe and arrays.

    Are there any other boardgame tutorials that involve turn-by-turn piece movement?

    I'm looking at creating a game that uses pieces to move on a grid fashioned board and the moves are determined by dice etc.

    thanks

    Chris

stobbsc's avatar

stobbsc

Member since 13 Feb, 2013

None one is following stobbsc yet!

Trophy Case

  • 11-Year Club
  • Email Verified

Progress

12/44
How to earn trophies