Asmodean's Forum Posts

  • ELIZA is an early natural language processing computer program created from 1964 to 1966 at the MIT Artificial Intelligence Laboratory by Joseph Weizenbaum or in short is an early ChatBot.

    https://en.wikipedia.org/wiki/ELIZA

    I found a Javascript implementation here : http://www.masswerk.at/elizabot/ and made a plugin for fun. It's maybe possible to alter this ELIZA implementation to make your own ChatBot, more in the link above. I didn't tried it.

    It has two actions 'input' and 'reset' and and three expression 'output', getInitial and getFinal. With getInitial you got an Initial message, with getFinal you can force an end message that you also got if you type in one of theis key words: bye, goodbye, done, exit, quit.

    There is an example capx in the zip, that should be self explaining. Eliza is a plugin and should be put in the plugin folder (Construct 2\exporters\html5\plugins).

    Edit: I implemented getInitial and getFinal and updated the example capx.

    https://drive.google.com/uc?export=down ... Xg-uku5htu

  • It sounds like a race condition.

    Could you call "final_score" from "score_words" after is done? Or use a (boolean) variable and when "score words= is done, set it to true. In an extra event when the variable is true call "final score". Then when that function is done set the variable to false again.

  • the Mnk

    The Formula for braking distance is Sb=V²/2*a with V for the velocity and a for the deceleration

    The velocity over braking time is:

    v(t) = V - a*t

    The distance over time:

    s(t) =V*t-0.5*a*t²

    Now you have to know how long the braking takes :

    v(t)=0

    => 0 = V-a*t

    <=> t = V/a

    with s(t) =V*t-0.5*a*t² and t=V/a

    => S= V*V/a-0.5*a*V²/a² = V²/2*a

    (speed^2)/(2*deceleration)

  • This should work:

    array_all_words -> For each x element

    • array_all_words.CurVal = "orange" -> my_text = array_all_words.at(array_all_words.CurX,1)
  • Here is how it could work, but it's more a dirty hack.

    Im using mersenne-twister.js from here https://gist.github.com/banksean/300494 and use Browser.executeJS.

    It seems to work with a seed. I get every time the same value.

    Example:

    https://drive.google.com/uc?export=down ... d3rk87HXUs

  • Look here, korbaachs example. It's for C2 but I think i should also work in C3.

    https://app.box.com/s/9y3912jdztpt03zw7vpvfffcehsxt292

    Thread : how-do-i-simulate-a-terminal-cmd_t184345

  • unfortunately it does not work for me as I would like. It works for me only when I'm on the top.

    As soon as I go down, the enemy is crazy. I only changed the enemy's speed.

    As I wrote. The movement of the enemies are hard coded positions, if you change the position it won't work.

    I changed the example this should work better:

    https://drive.google.com/uc?export=down ... 9Ga5Ifxim1

    I recommend that you try to understand how this works, otherwise it will break again when you adapt it to another setting. I put a little explanation in it.

  • Does that mean that all existing C3 3rd party add-ons have to be adapted to the new runtime? No backwards compatibility?

  • My try:

    https://drive.google.com/uc?export=down ... ChIjxlEols

    I turned the enemy sprite 90° in the sprite editor to use move forward. I turned pixel rounding of for smoother movement. You have to look with the absolut positions if that is OK. The enemies react only every 3 seconds. I recognized that was in you video the same. If that is not what you want change the time or delete it.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You have to call execute Javascript from the Browser plugin with something like that:

    "var myPopup = window.open("""", ""MyPopup"", ""width=200,height=100""); myPopup.document.write("&Score&");"

    Score is you global variable.

  • You could try it with a subliminal message, like Lotus Turbo Challenge 2 on the Amiga from Gremlin Graphics.

    Subscribe to Construct videos now

    -> <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

  • In NWjs 0.29 is a bug with webGL. If you use 0.29 try 0.28 or wait for 0.30

    https://github.com/nwjs/nw.js/issues/6498

  • Asmodean

    thanks for reply

    and for your advice

    but it did not work

    As I wrote it isn't reliable. If the mobil-Browser is in Desktop-Mode it doesn't work at all. I only tested it on one device with Chrome and FireFox. It works with both.

  • If you run it in chrome you can use the chrome-taskmanger (Shift-Esc) to controll if you have an memory leak. If it increase steadily you have a problem.

  • It works with the 'On collision with another object' . Isn't this an 'Is overlapping' with 'triggered once'?

    The same problem occurs in C3 too.

    However, even if it's a problem with picking it is still a bug. If it's not working correctly it should be mentioned in the manual that OR isn't working reliable.