TinyCrocodile's Forum Posts

  • I am exploring the possibilities of the speech synthesis plugin right now. The manual says:

    "Speech synthesis expressions

    VoiceCount

    Return the number of voices available for use with speech synthesis.

    VoiceLangAt(index)

    VoiceNameAt(index)

    VoiceURIAt(index)

    Return the language, name, or URI of the voice at the given zero-based index. This can be used to show the user a list of possible voices to choose. To select a different voice, pass the appropriate voice URI to the Speak text action."

    construct.net/en/make-games/manuals/construct-3/plugin-reference/speech-synthesis

    my question is: can I use these expression in visual scripting (and if yes, how), or is this something I have to do in JavaScript?

    Does someone have experience with working with speech synthesis? How can I find out which URIs I can use on the devices and browsers?

  • Thank you! I found this tutorial for Construct 2 which apparently is also valid for 3: construct.net/en/tutorials/savegames-313

    It does not say anything about cookies specifically, but it says that it is not possible to save in the cache and I assume that means not saving in cookies as well.

  • Is it possible to save the progress of the game online when played in the browser? For example as a cookie? If not, what would my alternatives be when the game is played in the browser? (E.g. saving on a database / saving locally etc.)

    I made some small games in Construct before, but never one where I saved the game's progress anywhere.

  • Thank you for the tip, however, I do not see a difference. Maybe the original artwork is too blurry to begin with?

    Edit: I am no artist, so I am not sure about this, but does the resolution make a difference? The original artwork has 75 dpi. Maybe thats too low res?

  • I am using a 9patch with a 400 x 400 px square texture to make a pop up window for text. The edges look quite blurry and I don't know what to do about it. I played around with the margin values, but did not see them do anything regarding the blurryness. All margins are currently set to 90.

    Can someone give me an idea what I could change to make the edges less blurry? Is it something in the texture?

  • Hi folks, since I am working on a project that will be used in education on very bad / old PCs (I don't know the exact tech specs, but they probably don't have much RAM).

    The project has currently problems running on them (html export in a browser) to a point where it does not even load on some pcs.

    Question 1:

    I know that there are some optimization options that I can choose when exporting, but are there other things besides that which I can do to make it run faster?

    Question 2:

    And while we speak about things being fast and slow, I noticed that the movements of objects run way faster on my working pc then on my phone (and on the bad pcs probably too). In Unity, when coding in C#, I always multiply fixed movement values with time.deltatime, which makes it that the speed is adjusted to a device's performance. Is there something similar I can do in Construct to make the moving appear in an universal speed?

  • I make a project in which I have lots of text snippets that I get from a .json file. Unfortunately, the formatting options for this text is very limited - at least from what I know.

    Is it possible to have a text object that displays text from a json file, in which for example just one word is marked bold, or in which I can make a line break to start a new line, and not a new paragraph? If you work with word, you'll probably know which features I mean.

  • I meant that you import it into the "files" section of your project, then it's not saved into the sprite-sheet.

    You can set the opacity with css

    opacity: 0;

    Oh thank you, setting the opacity with css works. Neat!

  • I am currently working with form buttons quite intense, in order to make the project I am working on more accessible.

    I ran into a problem where it is not acceptable that a button's (html) name is the same as its text content (on the screen it shows the text an "x", but the screenreader needs to read the name of the button as "close window").

    I noticed that on html webpages, the name and content of a button are different. A button can be called "closewindowbutton" while it shows an "x". I tried to accomplish that by using the "set attribute" command, but I ran into problems. See images below.

    This is my button, test button 1.

    As you see, when I check how it appears in html via the accessibility section in the browser, it shows test button 1 as its name, and also as content on a "text leaflet". Its values is empty.

    Of course, I tried to use the command "set attribute: name", but it has no effect on the button.

    When I, however, use "set attribute: value", it uses this data to set the name and text of the button. The actual value entry stays empty though.

    So I assume Construct somewhat has its own mind on how to make something with the buttons.

    I'd like to know if there is any chance I can actually modify the button's name somehow, or if that is just not possible. Weird though that I can select it as a command, while it does not seem to do anything. Maybe I missed something?!

  • Hi folks, I was wondering if the games and / or plugins that we use in construct do collect any user data, if and how I can find out about it.

    Someone pointed out, that a project I was hosting might use google analytics, but it may as well be that this google analytics came from itch.io, where I hosted it.

    Can I find out if there are any plugins, websockets or stuff that might collect data? And if yes, how would I do that?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thank you for your answer. I think what works now is that I set the line height to fontsize * 1,5. It is checked by an accessibility professional right now (writing something in easy language requires a line height of x1,5, thats why I have to get it quite exactly right). It looks ok on the first glance and also works with different font sizes.

  • Thank you for your answer! It kinda works, but it was a bit tricky to get done. This is how I managed to do it in the end:

    I set the property "background-image" to "url(images/myimage.png)" -> the images are saved in the images folder after export, not in the Files folder (as I first thought).

    BUT the sprites are combined on a sprite sheet. In order to display just one specific file, I had to put the image into the image folder in the zip file AFTER exporting it.

    By the way, the form buttons don't have the opacity option.

    But anyways, it works now, so thanks again!

  • Its me again, with my old friends, the form buttons. For accessibility reasons, I have to use those and can't use sprites to make buttons out of.

    I am wondering if its possible to embed an image in the button. In CSS for websites, there are multiple ways. I tried to embed an image with a weblink which did not work. I am wondering if it is possible at all, and I did it wrong, or if its not something that construct supports.

  • I would like to use the line height to reflect line spacing in a word or online text. The default value of line height is 0 pixels. I'd like to set it to something that resembles a line spacing of 1,5.

    How can I use the line height for that purpose?

  • I figured it out myself. If anyone runs into this question, here is what I did to display the two different layouts:

    I created layout 1 (landscape) with all elements arranged matching a landscape mode, and layout 2 (portrait), with the elements matching that. When the project loads, I set the canvas according to the viewport size, but switch the values for width and height. This way, I get portrait on mobile web and landscape on pc web, without having to rotate anything by 90°