lionz's Forum Posts

  • Difficult to guess this without the file but I would make sure te second layout is definitely linked with the event sheet and not set to 'none'. If it is actually linked then there must be a problem with data like with the array or something.

  • You can either make the item bar global so that it is showing the same data through layouts without calling the function again (objects are not destroyed), or you can add the function on start of layout to all event sheets that are linked to the layouts.

  • There is a Persist behaviour, you add this to any objects and they keep their state and variables when you return to the layout.

  • If you are already using an array to store the items by name then you should use the array to store the amount, in the next row or column. Then you can compare using the array each time, find name and the amount is at the same position.

    The logic in the function would become something like, array contains name, find co-ordinate of name. lets say co-ordinate is 3,0 - add 1 to 3,1 (amount stored in next column).

  • >

    thank you for the reply!

    I remember trying to do this method but I couldn't get the code on how to generate the matching row for the other value, if that makes sense.

    In other words, I could pick a random value from the meaning part but I didn't know how to get the matching word part, if that makes sense.

    If all of the questions are at X,1 and all of the answers are at X,2, then all you need is X. So if x is 6 then the question is at 6,1 of the array and the answer is at 6,2. So the question is randomnum,1 and the matching answer is randomnum,2 every time.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Maybe the base is in the correct place but the knight is pinned below in the wrong position? Make the base visible so you can see where it is in game. what logic did you use to fix the knight to the player movement sprite?

  • Looks like the collision box on the player or the pink sprites, open them in image editor and check the collision box it is one of the icons on the left tool bar.

  • Report as a bug in the bug area if you think it's broken, devs will fix it.

  • Great! Glad it's resolved :)

  • So what is the specific problem you are having? Each instance would have its own timer so you can track this if you want per instance. If the actions are so different you can use tags to separate them.

  • This seems to be running every tick and you don't reset the variables until you press retry so if you go in debug mode it is probably creating hundreds of these objects? Probably the screen you see is when it waited 0.5 seconds after creating the latest object, you need a trigger once on that first event.

  • I would move it to an array with 2 columns for question and matching answer, easy to write out in a file and import to array as you did with the dictionary. Then you can pick question and answer from the same row and each time pick a random row.

  • Set the timer to random(1,20) as Once, then have On timer finished, set timer to random(1,20) Once

  • Not that I know of

  • On the left there under your avatar it says 6 topics click that