seantellsjokes's Forum Posts

  • 2 posts
  • Thank you, mindfaQ, that was very helpful. But it did expose bugs I had made further down in the event sheet, ha. I'll keep trucking, get there eventually.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi, I'm trying to make a basic checkers game. My idea was to have the board and pieces all run through an 8x8 array, with different values for a blank square, a square with a red piece, and a square with a black piece. The board is created on start of layout.

    When I ran it in the debugger, I saw that the number of sprites representing board squares was growing every single tick, I'm assuming one right on top of the other as I can't see them. I've tried a lot of dumb ideas to get it to just create the board and stop with no success.

    As I'm new, I can't post a link to the capx, but the event that creates the board goes-

    Condition

    checkahs- for each xy element-

    Action

    System- create object boardSquare on layer 0 at (checkahs.CurX*boardsquare.Width+150, checkahs.CurY*boardsquare.Height+50)

    boardSquare- set animation frame to checkahs.CurValue

    boardSquare- set positionX to checkahs.CurX

    boardSquare- set positionY to checkahs.CurY

    boardSquare- set positionValue to checkahs.CurValue

    checkahs is the name of the array, boardSquare is the sprite that represents each square on the board, positionValue is an instance variable for the sprite boardSquare

    Any help would be greatly appreciated

  • 2 posts