What am I doing wrong here?

  • Here's a copy of a stripped down version of my capx.

    CapX

    When it counts off in the database the x variable works fine. The Y seems to lose a digit. It should be everytime the y variable passes the number of records variable the y should reset back to the stsrting y position. But it resets back to the y position + 1 instead. I'm sure it's something relatively easy but with a lack of sleep I can't seem to place my finger on it.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Anyone around able to figure out what I'm doing wrong with my conditions? I know that the php side works fine as it uploads tiles in the right format.

  • I don't fully understand what you're doing there but I guess setting NextY to int(StartingYPos.Text) in event 8 makes event 9 true, which then adds 1 to NextY. Deactivating the group in event 8 wont stop the rest of the events in the group from running.

  • ramones What I want to do is this. Say I enter 1 and 1 for the x and y and set the number of records to 3. I want to first start by filling in positions by the x mark so x1y1,x1y2,x1y3 then when y reaches the record amount set x to the next item and reset y. So x2y1,x2y2,x2y3 The do it again one last time with the x variable set to 3. Then when x and y are both filled completely(9 records) I want it to stop.

  • ramones,

    I switched checking to two groups, one for x and one for y based on what you thought and you were right. :):):) Thanks bud :)

  • Nice one.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)