timcs's Forum Posts

  • Hi

    I know this is going to be "simple" to do but I am trying to apply the effect that when object A drops on top of object B , it pushes object B down and for a period or amount that has been applied, stays with it and then will be destroyed.

    This is difficult to explain so I hope I have made some sense of this

  • Hi

    I've been looking at this also, but on IOS.

    User Media uses the HTML5 text to speech API. Example:

    var utterance = new SpeechSynthesisUtterance('Hello world');

    window.speechSynthesis.speak(utterance);

    This works fine on Safari on iPhone and iPad as standalone javascript. However, once it is compiled via Cordova (PhoneGap) it doesn't work.

    It doesn't produce an error, and debug shows that window.speechSynthesis is an object. But the call to .speak doesn't produce sound. I attached it to a user interaction (e.g. click a button to .speech) in case it required user interactivity, still no joy.

    I tried using the Cordova TTS plugin instead but it clashed with the Construct 2 audio system.

    Once I've looked into this more I'll update this post with my findings.

    Good luck!

    Hi AaronSmithUK

    Thanks for your reply on this not sure if your problems with Cordova TTS relate to the ones I have had where I am switching spoken languages and even when I do the speech sometimes ends up in the wrong language.

    What I have found with the User Audio TTS is if you open the example capx file that comes with Construct 2 and compile it for Android , the app immediately warns you that it cannot find the speech data or something of that kind.

    I have emailed the author of the Cordova TTS about the need of a rate control but I have not heard anything back

  • Hi

    I have been working on a project now and to start with I have been using the Cordova plugin TTS however this does have some limitations to it such as no control over the rate of speech etc.

    Then I discovered that the user media does all of this but where I am struggling to get it to work , is on mobile platforms such as Android. Does this mean that the user media is only designed to work on a desktop environment ?

    This would be a blow if so because it has so much more control that the Cordova plugin.

  • Got this solved, when I was trying to add the last word instead of appending onto my variable I was infact clearing it leaving it to only put and but then the last word was still not being added after that.

    However I have solved this now, got other problems within the same part where it is not clearing these words if the selection is changed and I think its leaving the and sometimes on the end when it should not.

  • Hi

    I know this should be easy but annoyingly it is getting the better of me . Basically I have a list of words held in a listbox and when (the listbox is set to multi select) more than one word is selected I need to add this to a string variable and each word (but not the last one) needs to be separated by a comma and then the last word needs to be separated by the word and .

    So at the moment this is triggered by a listbox on clicked (I have also tried on select change as well) and then I have added a sub event from this with the condition listbox.selectedcount>1 then using a for loop add each selected word to the variable adding a comma on the end but no words are added when I do this.

    Is my logic correct ? If so it must be how I am going about this. This is a large project to add as a capx file as there are other event sheets involved here doing other work within the project but if someone could point me in the right direction I would appreciate it

  • Hi Ashley , so there is no easy way to copy an existing layout structure to another layout but name the objects differently ? It is just that I am creating menus with the same "look" about them but the buttons on the menus will be used to open other layouts hence the need to name the buttons differently to identify their actions.

  • Can't reproduce: opened a new project, added a text object, then duplicated the layout. The first text object has UID 0 and the second UID 1. No .capx provided so cannot investigate further. Note the r241 download link is right there in the website footer.

    Hi Ashley

    The issue is mainly to do with the fact that naming the objects after they have been duplicate. Yes the UIDs do change eventually but only after a close project and reload but my problem is that when the new UIDs are assinged, when I then change an objects name on the duplicated layout, it still re-names the original objects name as well. I can provide a capx but it will not really clearly show the issue as you need to see it happen as a possed to seeing it after it has happened,

    Also if I download the newer build , is there anyway of installing it separatly to the existing build because I could not see an option to do this.

  • >

    > >

    > > Also not sure if you noticed my amendment to my last post, any thoughts on how to do the page curl if the sprite object was just clicked on ?

    > >

    >

    You must convert or i must convert mouse position to vector or normalize this position to -1.0 to 1. 0.

    And then you can change fx prameters with this converted values...

    Gigatron I am not sure if I fully understand this but I will try and figure this out

  • Sorry here are the missing fx in one file;

    http://gigatron3k.free.fr/html5/C2/FX/fxfiles.rar

    Gigatron Thanks again would you believe it , loaded your effects into the folder for Construct 2 , restarted it and opened your example again, guess what !, it still stated an effect was missing!. This is called "Flow Noise Fire" .

    Also not sure if you noticed my amendment to my last post, any thoughts on how to do the page curl if the sprite object was just clicked on ?

  • Gigatron Thanks for you reply, I did add both page.fx and page.xml into the effects folder and then I added the other effect after that in the same way. They both appear unders effects, however if I load the example you provided in the original thread, I still get a message stating that there are missing effects.

    Any ideas why ?

    Also thanks on the hints, I am trying to get the page turn to work just by clicking on the sprite object and for it to completely turn over , any ideas on this as well ?

  • timcs the effect link was posted in this thread:

    I found and downloaded the puslar fx from this thread and installed that but when I re-start Construct 2 and load that capx file I am still getting the same warnings . I presume this will not stop the pagecurl from working though.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Gigatron did a shader:

    http://gigatron3k.free.fr/html5/C2/FX/page.rar

    Thank you for your reply, one question, how do install the "page.fx" and if needed the "page.xml" as when I open this project it is stating that there are missing effects and am wondering if these files are needed to be installed somehow in Construct 2.

    **EDIT**

    Found the effects folder and copied them into that , although Construct 2 still states that there are missing effects , they still seem to work when sliding the bar !?!?!?

  • I presume from there being no replies that the files in these links are no longer something anyone has, Shame really I would have liked to have been able to do this.

    Is there any chance of re-visiting this and finding a way to create this effect please?

  • Hi

    I have searched around the forum for an answer and these are some of the old posts I have found :

    Trouble is because of their age , the links to the capx files on someone of these threads no longer work and wondered if anyone had a copy of these or if the original author(s) could provide a link as I am trying to add such an effect into my project.

  • I'm really glad I could help you I had a similar problem in the past so I figured it could be the same for you ^^

    No need to correct you, it's indeed called "accents" in French

    Odd thing has happened here and I am wondering if it is to do with phonegap as it played up with the TTS plugin I have were it would not compile with it added in, however when I removed it and re-added it that worked.

    However, with this Unicode file I have converted, I copied it to another folder, did some more additions to the project, exported the project, copied the convertered txt file into and overwritting the newly exported one, zipped it up, loaded it into phonegap (update code) re-built it installed but the characters are not showing correctly .

    Maybe I have to re-convert the exported one everytime?

    ** EDIT ** yes is the answer to the above question