VikasSanstha's Recent Forum Activity

  • I am loading random images into a sprite using load from url (but just using the c3 project files folder).

    How do I set the text in a text box to de dervied from the filename prefix of the image file?

    Use:

    1) I have two images in the files folder - dog.png and cat.png

    2) A button is clicked and cat.png is loaded into the sprite via load from url event

    3) the text in a textbox is therefore set to say cat

    Many thanks for any assistance!

  • Got that (an oversight on my part), but I just deleted the first empty column, and it still does not work. I thought that this was telling to use the height and not width.

    bgColorArrayEditor.At(0,randomY)

    Thanks, I have reposted the project file

    dropbox.com/s/cr6fxdwwcp9gur5/bgColorArrayTest.c3p

  • Click the button to change the bg to a color from a list of values. I have it working fine when I populate an array by using the event sheet, but when I put the colors into a JSON file I can't get it to work.

    Many thanks, any help is greatly appreciated.

    dropbox.com/s/fp0h0jw2h5pb8ze/changeBgColor3.c3p

  • I have tried for hours to get this working with one array that has a column for English and another for Hindi. It's not hard to get it working basically, but I cannot do it so that it preserves all of the current behaviors, which is critical.

    The behaviors that have to be preserved (these are working perfectly in the attached project file):

    1. When the user changes to the other language the background color should not change
    2. When the user advances forward or backwards, the language doesn't change. If it was Hindi, it stays Hindi, etc. This is most important.
    3. The TTS, which is triggered by the sound icon, or by clicking on the picture or sentence, needs to still read the correct sentence.
    4. The counter

    In the posted file below I have added the Hindi to the English array (which in the new scheme would just become the one array), but that's all. The event sheet is still using both arrays.

    https://www.dropbox.com/s/92bpwos67bwd06b/Sentence%20tutor%20one%20array.c3p?dl=0

    Any assistance is greatly appreciated. I have exhuasted my capability to achieve this. This would be an extremely useful thing for me to learn and understand, as almost all of the work I'm doing is bi-lingual, and this is a much easier way for me to work, with one array that has both translations.

    Thanks again!

  • You do not have permission to view this post

  • You do not have permission to view this post

  • You do not have permission to view this post

  • You do not have permission to view this post

  • Thanks so much for the feedback! I have implemented an additional JSON file with Hindi translations, and a language switching mechanism. It works OK, but I'm sure it could be more elegantly constructed. I would really appreciate any feedback if possible.

    The only thing I know I am just doing wrong is that it won't switch to Hindi on the first sentence (on the first sentence only). It actually does switch to Hindi (if you click the picture for the first sentence you'll hear the Hindi TTS), but it doesn't show the sentence. Again, only for the first sentence.

    Other than that, it all works, but it really frustrates me to know that I could be doing it in a more elegant and efficient and sensible manner. For example, I'm sure my treatment of the flag outlines is unecessarily complex. I'm very motivated to learn.

    dropbox.com/s/7jw75rbzv1qyegt/VikasSanstha%20sentence%20practice.c3p

    Many thanks again! You have been so helpful. I'm a teacher in India and this is for my students to practice reading in both languages.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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.

VikasSanstha's avatar

VikasSanstha

Member since 24 Jul, 2021

None one is following VikasSanstha yet!

Trophy Case

  • 3-Year Club
  • Forum Contributor Made 100 posts in the forums
  • RTFM Read the fabulous manual
  • Email Verified

Progress

6/44
How to earn trophies