mindfaQ's Recent Forum Activity

  • Oh yes, you can do that a LOT easier.

    1) Texts could be spritefonts (or text objects, but those are trickier to handle in terms of positioning).

    2) Questions therefore could come from a project file, containing all your questions and answers. You would need to incorporate the possibiliy to add images from the question text, but that's very much doable (putting them into an array after loading the project file would be possible, but not necessary)

    3) randomizing the order of 1-4 could be done by a shuffling an array containing the numbers 1 - 4 (knuth shuffle)

    4) you have many duplicate sprites in the a, b, c, d, you only need them once

    You'd end up with something, where you don't need to add any events just to add a new question. You'd only need to add your images in the questions and answer text, that you want to use and update your questions in the project file.

  • No. Use instance variables instead...

  • A regexvariant would be

    test regex

    string: globalvariable1

    regex: "^[abc]$"

    flags: ""

    If you need to check for variable contents (a not being a string, but variable name), then the variant without regex will be easier.

  • v0.1.0

    https://github.com/AwesomeAxolotl/translation_overlay

    Kinda happy I can alread swap out translations for the interface. For now can just view images in a folder, no overlay editing capabilities yet.

  • Oh okay.

    Set text to:

    text.Text & RegexMatchAt(Keyboard.StringFromKeyCode(Keyboard.LastKeyCode), "[0-9.]", "gi", 0)[/code:12u0cnjw]
    instead.
    
    Edit: if you wanna prevent F-keys to fire off, you'd also have to match differently, because of this (if you think this is a problem).
  • I have this problem as well. In non-debug-mode it works fine.

    r221

  • I would assume spawning many spritefont objects which then you can move separately (either through behavior or manually). You could for example use the sine behavior and set the cycle position for each further letter a bit further into the sine cycle.

  • You don't need a textbox for that.

    Say you are waiting for input. Then you can activate the following event (if you only want to accept numbers):

    https://drive.bitcasa.com/send/ZoS-vHik ... LYaDLNYOjo

    Obviously works just as well with spritefont. You can also easily add a blinking marker at the end or highlight the text, or pretty much do whatever you want.

  • 1) the expression is textbox.text

    2) system -> compare two values; if you have more than one textbox of each type, you need to pick the correct instances

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • What is there to know?

    You can use project files + ajax or perhaps a dictionary object to store your level data. Project files have the advantage to only being loaded into memory when you need them, while the dictionary would have to be filled immediately.

  • Place it in C:\Program Files\Construct 2\effects

    It is a webgl effect. If you need to support canvas2d, then you need to do something like R0j0hound suggested or keep using your solution, I think.

  • I'll talk about the looping instead of how to optimize it performance-wise (generating chunks with canvas or paster is a good idea, you will end up with about two big sprites that you will move at the bottom at any time).

    If you wanna know the height value at a specific x, you can look up:

    height = array.at(xvalue%array.width)

    So if you wanna know the height at x = 4000, you will end up looking in the array at 399. The operation is called modulo.

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