mindfaQ's Recent Forum Activity

  • Ashley:

    I've found out that it only happens, when the zoom level for the page is something else than 100% when starting the preview. Could be interesting if it's the same for Chrome. When the zoom level is at something else, it also happens with Firefox and IE.

    demonstration:

    Subscribe to Construct videos now

    Note: the problem is not that it is more zoomed out with smaller zoom. The problem is that coordinates get messed up, proportions get messed up (window size to sprite size).

    Example: setting x of the sprites to mouse.x, when the mouse was in the middle of the window and their origin is at the middle of the cube, looks like this at 50% zoom:

  • Yes, I will do that.

  • someone Yeah, things are a little raw. Like I don't like the fact you cant hide some bones and their children. It makes overlapping bones in things like characters at a side perspectives very tricky to work with. The scroll bar is also FAR too sensitive. Every time I use it I just loose my place in the world.

    You mean the scrolling in Construct 2? Do you know you can also scroll by holding down Space and moving the mouse?

  • 1) use textarea as type

    2) loop through the text character by character, count words by logic like: stop counting as word when punctuation, newline or space follows, start counting a word when a character unlike punctuation etc appears.

    3) textarea does that automatically

  • Problem Description

    Sorry, another audio problem in Opera. The condition audio playing is not working. Also playback time does not reset to 0, when a new audio file is played for the tag, so a simple workaround with audio.duration("tag") = audio.playbacktime("tag") is not possible. The "on ended" trigger also does not work.

    Attach a Capx

    https://www.copy.com/s/ANyqyBGbdiIrc9yD

    Description of Capx

    Plays an audio file not looping and the second button changes the text, under the condition that the audio is playing

    Steps to Reproduce Bug

    • click the upper button
    • keep clicking the lower button
    • notice how the text keeps changing even after the audio finished playing

    Observed Result

    After the audio finished playing, the system does not recognize that it actually finished playing, so the condition "audio is playing" stays true.

    Expected Result

    It recognizes when audio finished playing.

    Affected Browsers

    • Chrome: (unknown)
    • FireFox: (NO)
    • Internet Explorer: (ogg audio not working)
    • Opera: (YES)
    • NW.js: (NO)

    Operating System and Service Pack

    win 7 64bit

    Construct 2 Version ID

    beta r201

  • The example blend modes from Construct 2 contains a visualization of the blend modes. So what you wanna do is put the black oil mask on the same layer als oil in bottle, put the oil mask above the oil (z-order) and set the mask's blend mode to destination out (if I'm not mistaken)

  • https://copy.com/G1eGXoqiTaSVu0jh

    Ajax in this case is the ajax object in Construct. Read the Construct 2 manual for more information on it, if you want to know more.

    SIDENOTE: If you are working with large arrays/lists, it is probably faster (performance/memory-wise) to set the array's final size right in front of the loop and then just fill it step by step, instead of repeatedly resizing it. So instead of push you set the array width to the tokencount that was used in the for expression. And in the for loop instead of pushing, you use set array at (loopindex-1) to tokenat(...)

  • What's complicated about that solution with the array? It's just a simple one line expression to fetch a value like that.

    Personally I would just add a text file to the project, that contains all the nouns and then, after I've successfully requested the file with ajax, add them to the array with a for loop.

  • I hope you have the full version, then you can use different objects for indexes and ions.

    The idea would be letting the program read the table from left to right.

    Add the ions and indizes and brackets to a family. Set their origin points to somewhere on the left edge for best results. Assign a family variable called charge. For ions set it to their corresponding charge. For indexes and brackets set it to 0.

    Now you could do a for each (ordered) for that family to read from left to right. Create an invisible box that marks your playing field and do an overlap check or restrict the allowed x and y to only catch stuff in the playing field.

    So it goes from left to right, you read the charges from the family instance variable. You need to add the logic behind the brackets and indizes to your reading logic. You should end up with the charge of the expression when you do it right. You might want to also check if the ions/symbols are near enough to each other (correctly aligned)

    Another approach would be the indizes and brackets snapping to ions and they directly influence the charges of the ions. Then you just select all ions that are in the playing area and sum up their collective charge. Etc. Many different solutions thinkable.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You code does not look very much to the point and your times will produce slight inaccuracies (since it sets timervariable to 0 instead of timervariable - 1 (the time of your cycle))

    https://copy.com/q46Og7yBAVnJkZWu

  • Skip and autoplay will be within the 100 events.

  • Problem Description

    Form objects are displayed at the wrong position after the change of the canvas size while the project's fullscreen scaling is "off".

    Attach a Capx

    https://copy.com/QPcHihHT7MahrBns

    Description of Capx

    Reduces the canvas size and centers the view on click on a button.

    Steps to Reproduce Bug

    • fullscreen scaling to "off"
    • have form controls
    • resize canvas size

    Observed Result

    The text object is aligned correctly, the present form controls aren't (although their x- and y-coordinates did not change afaik)

    Expected Result

    both text object and form controls are aligned correctly.

    Affected Browsers

    • Chrome: (UNKNOWN)
    • FireFox: (YES)
    • Internet Explorer: (YES)
    • Opera: (NO)
    • NW.js: (NO, but window does not resize to fit the new canvas size - intended? probably a nw.js-thing though)

    Operating System and Service Pack

    win 7 all recent

    Construct 2 Version ID

    beta r201

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