TetroniMike's Recent Forum Activity

  • 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.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Is this even possible with the vanilla C2 SpriteFont object? If not, is there a plugin available?

    Thank you!

TetroniMike's avatar

TetroniMike

Member since 18 Sep, 2016

None one is following TetroniMike yet!

Connect with TetroniMike

Trophy Case

  • 8-Year Club
  • RTFM Read the fabulous manual
  • Email Verified

Progress

10/44
How to earn trophies