DirtySix's Recent Forum Activity

  • Thanks!

    Yes, I think a get what you mean. The reason why i'd like to have string-chaining is that i want to have something like slot+"array.curX".imagePoint(0) = new blacksprite; is it possible to store my "slot"-object into another object so i could say like slots[array.curX] = new blacksprite; ? I just like to have the pins relative to the slot than just set the x,y coordinate, so i'm save with screenresizing, layoutchanges and what not.

    thanks for the advice with animationframes, souds a lot better than having single sprites.

    greetz,

    Dirty

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks for the reply, yes I don't know myself what i have to do for what i want.

    I know how to add the clicked color to an array, but I don't know how to create a new object for to be shown at the first slot.

    I had it this way:

    "black-pin"-object > on click > create new "black-pin"-object on image-point(0) of "slot1"-object & push "black" to array

    same for "white-pin"-object

    What I want:

    "someColor-pin"-object > on click > create new "someColor-pin"-object on image-point(0) of "slotX"-object & push "someColor" to array

    where "X" is just the next slot starting at 1

    So having a variable where i count the slots sounds well, but i need to get the number of the next slot in the action and I think string-chaining for variable names like in javascript doesn't work.

  • Hey everyone,

    I'm completely new to construct2 and like to make litte game to learn and get used to it (yes, i also did the beginners tutorials )

    The game itself is kind of a "mastermind" typed game, you get a random code, try to solve it, and so on...

    So, the problem I currently have is:

    I have (or should have) an array of slots (fixed length) and an array of sprites (colors), when I click on one of the color-sprites it should create a new copy of the object in the "code-bar" on the next open slot and also write it into the array, unless there is no open slot left.

    How can i prevent the new object creation everytime i click on the color, and also set it to a new slot every time?

    How to even have dedicated "slot"-objects to add a color-sprite to?

    I'd appreciate every information on how to get this working how i think or some advice how to think it right to fit into a construct2 workflow

    Greetz,

    Dirty

DirtySix's avatar

DirtySix

Member since 19 Jul, 2014

None one is following DirtySix yet!

Trophy Case

  • 10-Year Club
  • Email Verified

Progress

11/44
How to earn trophies