mindfaQ's Recent Forum Activity

  • easier:

    put all sprites you wanna count into a family

    family compare frame > 0

    family is on-screen: set spritesonscreen = family.pickedcount

  • UID and IID are different from each other. You pick by IID.

    UID is unique.

    IID only is unique along all instances of an object and gets automatically assigned starting at 0 and counting up.

    So your code would need to be

    pick instance 0 of button

    pick instance 0 of text

    pick instance 1 of button

    pick instance 1 of text

    Or you swap it with picking by UID, then your code would work as well.

    I probably would give each object an instance variable though and identify them with the help of this variable. So for example the buttons get a variable named buttonID, you set it to a different value for each button and can pick them with by comparing the instance variable.

    This will be a more descriptive way of doing things and could help you to understand what exactly the code is doing, when you come back to it later on for whatever reason.

  • Not sure what you want to do, but it sounds to me like you want to use a 1D or 2D array. Maybe it is for level properties like gravity and stuff?

    Then you could set up a gravity array, and to access it you just use gravity.at(currentlevelnumber) where currentlevelnumber is the level's index you are currently in.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Implying people still need screensavers. I am really a bit mind blown that some people do use screensavers still, while they ofc reduce screen lifetime (not a big factor) and more importantly waste energy (in comparison to the computer just switching off the display).

  • I've created an event like this:

    every 2 seconds:

    destroy blocks (family)

    system create blocks (family) on layer ...

    And it worked without problem. So maybe you missed to exchange one vital block expression with, at least would be my best guess now.

    I might have this totally wrong - in which case I apologise.

    Judging by the lack of a medal in your avatar I think you must be using the free version ? I don't think that families work in the free version.

    Steam users for example don't get the badge, so you can't really be sure if the persons own the personal version either way.

  • Why do you need to select a txt file for your ajax action.

    If you know the filename in the project files, just use a URL request like "item1.txt". Or if you dynamically want to go through all elements, you could use "item"&variablenumber&".txt" as filename and change the variablenumber each time.

    I'm not sure where you are stuck, especially since you bring up csv.

  • Construct 2 games crash in this browser version, or is it just my installation? Wanna know it. If it is just my installation, I need to fix it. thanks.

    Edit: doesn't happen for all games, I don't know what the cause is :/.

    example: scirra.com/tutorials/682/sequence-quiz-a-game-for-the-classroom this crashes. But it must be my browser, if an old release crashes. Just don't really know what I could do besides reinstalling and clearing the cache.

    When I downloaded the .capx and ran the preview, it worked, though. I am really confused now.

  • why would you want it anyway...

  • Sure, you have different options for separation.

    For example tag each question. (a new field for each line)

    You could use a different z-index for different text files/subjects. (I think I would prefer that one)

    You could use more than one array, one for each subject.

    You could use one text file and use another separator to divide subjects and you'll save the info somewhere which x-index-range contains which subject.

    Ofc depending on the way you separate the questions in your array(s), you must modify the algorithm that shows the questions.

    You can also add a tag to questions for their difficulty level.

    So a text file could look like this;

    Question 1?;right answer;wrong answer 1;wrong answer 2; wrong answer 3;1

    Question 2?;right answer;wrong answer 1;wrong answer 2; wrong answer 3;2

    Question 3?;right answer;wrong answer 1;wrong answer 2; wrong answer 3;2

    Question 4?;right answer;wrong answer 1;wrong answer 2; wrong answer 3;3

    1 would be easiest, 2 easy, 3 normal, and so on...

    And then let the game increase the difficulty over time.

  • the questions part is easy, make a textfile, format it like this (you can use a different separator than ; ofc)

    Question 1?;right answer;wrong answer 1;wrong answer 2; wrong answer 3

    Question 2?;right answer;wrong answer 1;wrong answer 2; wrong answer 3

    and so on.

    Then you import that file as project file, load it in via the AJAX object.

    Then parse it into an array.

    After that you can easily work with the questions and answers in the array and load them into your game.

    example: copy.com/6dTNVXTviBkUcjsj

  • easier:

    event:

    object variable = xyz

    action:

    set var_number = object.pickedcount

  • It is rather simple:

    copy.com/OqrKHoesNdWpheF8

mindfaQ's avatar

mindfaQ

Member since 12 Oct, 2013

None one is following mindfaQ yet!

Trophy Case

  • 11-Year Club
  • Coach One of your tutorials has over 1,000 readers
  • Email Verified

Progress

13/44
How to earn trophies