VikasSanstha's Forum Posts

  • You do not have permission to view this post

  • You do not have permission to view this post

  • Sorry, my mistake, it's zeropad(imageNumber, 4)

    If it's still not working, please post your project file.

    Thanks very much, the load from URL is essentially working. A few things if possible.

    1) What is the 4 doing? I don't understand. I have six sentences/images now, and it still only works if I keep that number at 4. If I change it to six it doesn't work.

    2) The math I had come with to preserve the image aspect ratio (event 9) no longer works now that the images are being imported from a URL. It worked without issue when I using animation frames.

    3) I couldn't get the transposing and using (0,currentlevel) to work. In the project file I've posted below, I changed it to height transposition, and the events to (0, currentlevel), and it doesn't work. If you transpose back, and change the three events back to just (currentlevel), you'll see that it works.

    4) I'm unclear how I'm supposed to have the sprite use the URL-imported image 0000.png as the intial image, as opposed to the default sprite image. After that, starting at 0001, it works as expected.

    dropbox.com/s/typ1p3jemcj7iw7/Sentence%20tutor%20v2.c3p

    Many thanks again! Greatly appreciated.

  • > I work alot on content that is both English and Hindi TTS. It's a bit of a nightmare.

    Sounds like a thing that would make me quickly ragequit with how I can't even do a silly thing with it. lol

    The Golden Ticket for TTS is to pay Google/Amazon/MS cloud services a fairly large amount of money, then you get more cross-platform predictability and higher quality and more varied voices. Implementation is still not easy though, it takes a skilled developer. Construct makes TTS and speech recognition incredibly easy by comparison to any other method I've seen.

  • I could never get this to work.

    sentenceArray.At(0, currentLevel)

    or either of the methods for drawing the image files from a local folder.

    "Error: zeropad does not accept 1 parameters"

  • Two options:

    1. You can right-click any row/column in the Array Editor and choose "Transpose". So you edit the array when all sentences are in one column, and before running the project you transpose them into one row.

    2. Use sentenceArray.At(0, currentLevel) to get sentences from Y axis.

    Thanks very much. I think I understand now - sentenceArray.At(0, currentLevel), first being x, second being Y, and I had only the X referenced before.

  • TTS is all over the board - device, OS, user-determines OS settings, browser, user-determined browser settings, etc. It's very tough to implement with predictability. Least common denominator is about all you can count on. I work alot on content that is both English and Hindi TTS. It's a bit of a nightmare.

  • You do not have permission to view this post

  • Right-click event #3 and change it to OR-block.

    Change the expression for color to bgColor.At(random(0,4))

    Thanks very much. I appreciate it. One more question if I could. I have the sentences all in the x (width), but it would be easier to manage/edit them if they were in the height. I have not been able to figure out how to preserve the correct overall behavior if I do this. Many thanks for any assistance.

  • Thanks guys, I'm going to work with this now, but here's the original if it helps. I've reduced it down to just a few entries.

    dropbox.com/s/cctct9ygbsmhraa/Sentence%20Library.c3p

    The cursor behavior isn't working either, and I'm sure I'm going about the bgColor the wrong way as well.

  • You do not have permission to view this post

  • I have 1500 sentences in an array (via JSON), and a local folder with 1500 images 0000.png to 1499.png. The sentences are displayed in a text box, there's a sprite above, and then prev/next arrows. Students click through the sentences, and the images are paired to the text. I know how to do this with animation frames but this is not what I want.

    I need to mate the project to the folder of images. Array x=0 is 0000.png, etc.

    Output is html for browsers. The local folder gets uploaded to the web server in the final implementation, but I can of course put - and reference - the images anywhere, including in one of the folders that Construct generates as part of the output package, but the location shouldn't matter, it's just the process that I don't understand.

    Any help is greatly appreciated. Many thanks.

  • For the images, you can have a sprite that changes animation based on the text, or add the animations to the array as well.

    I would appreciate any input on how to add the image references to the array. I already figured out how to connect the sentences to particular images based on the text (set animation frame to current level), but not by using the array.

  • You do not have permission to view this post

  • You do not have permission to view this post