TetroniMike's Forum Posts

  • Not holding my breath for an answer, I know this is a really niche thing to need, but *bump*

  • There doesn't seem to be any "voices" available in an exported NWjs Linux application, therefore Text to Speech does not work. Any ideas?

    Note: I tested the exported application in Ubuntu 16.04.3.

  • Saw this in my F12 console while testing my game in NW.js... I have very little idea what this means, other than something in the Audio plugin will no longer be supported very soon. Is this something we need to worry about?

    [Deprecation] GainNode.gain.value setter smoothing is deprecated and will be removed in M64, around January 2018. Please use setTargetAtTime() instead if smoothing is needed. See https://www.chromestatus.com/features/5287995770929152 for more details.
    C2AudioInstance.play @ Audio_plugin.js:1689[/code:34mv4s0j]
  • Copied the Video plugin and modified it to be able to return width/height, I'll share it with the forums at some point

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • TLDR; I need to get the pixel width and height of video files.

    My game will have multiple video files of different sizes. I'd like to resize the Video object to match the pixel dimensions of the video that is playing, but it doesn't seem to have a way to get the loaded video file's width and height. Any way I can get this information?

    Thanks

  • NN81: If I did that I'd have to copy the code for each of the three families, instead of one single loop

    dop2000: That's not a bad idea! I think I might be able to use it as a starting point. Thank you!

  • Is there any way to loop through object types in a family? i.e. lets say I have a family, "Objects", with the following sprites: A, B, and C. I have 3 of A, 10 of B, and 1 of C.

    Objects

    A (x3)

    B (x10)

    C (x1)

    I'd like to run a loop on the Family "Objects" that for each object type, picks those instances and does something. If I run a normal For Each, it would loop 31 times. I'd like to find a way to loop 3 times, pick all of each object type - A, B, and C, one per loop - and does something to those objects.

    Possible?

  • Sorry to bring this back from the dead, but I am also hoping to have a selection of languages in our game and need more than the default TTS voice... is there any way to get additional TTS voices in NWJS?

  • Right, and both of what I mentioned above were file paths. One loaded a text file saved locally into a text object, the other loaded an image saved locally into a sprite. The former did not need the file:/ prefix, the latter did need it.

    I suppose there might be a better way to load in a local text file than using NWjs.ReadFile that I am not aware of?

  • Thanks Ashley, I did some tests in Ubuntu today and it looks like loading a text file via NWjs.ReadFile works fine without the "file:" prefix, but loading images into a Sprite via Load image from... requires prefix "file:/" (with just the single forward-slash). Will the next build make this consistent between the two objects, so I can just make a single "AppPath" text variable to use for all file loading?

  • Yeah file dropping is what I've settled on for now too, thanks

  • Sorry to bring this back from the dead, but Colludium, did you ever get this to work?

  • Silly question... where would I find the runtime.js for the Sprite and SpriteFont objects?

  • Hmm, I wonder if this is something that could be modded relatively easily. We're planning on having a number of different pixel fonts and styles, and having so many SpriteFont objects would be less than ideal.

  • Is this even possible with the vanilla C2 SpriteFont object? If not, is there a plugin available?

    Thank you!