Jim Smith's Forum Posts

  • Jim Smith This is correct. All iterations in the loop are executed immediately in one tick. However, actions after "Wait" are scheduled to run later. So if you put "Wait 1 second", all 20 iterations will run after 1 second, but if you put "Wait 0.5*loopindex", they will run with 0.5s intervals.

    I think I understand that better now. Thanks.

  • Thanks fredriksthlm. That works just fine..

    I am still a bit baffled though. It's like all of the iterations of the loop run virtually simultaneously, in parallel.

  • Thanks YME. I will consider that.

  • This code simply plays all of the sounds simultaneously.

  • I want to loop through 10-20 actions with a small delay between each iteration. I don't want any of the rest of my events to execute while this loop is looping.

    I read that the "Wait" action will not work in a loop. What's the alternative?

    Thanks, Jim

    Tagged:

  • I see it. Thanks.

    Is there a way of getting to the same list if I'm not looking at one of my posts already?

    Thanks, JIm

  • I know what it is! Chrome is warning me that a website is going to edit a local file on my PC. I don't think it can be turned off even for specific sites.

  • How can I see a list of all the forum topics I have started?

  • Does anybody know why I get this message when opening a local project file in C3? I'm using a Windows10 PC. C3 is running in Chrome.

    Thanks, Jim

  • I have added a TURN SERVER to the multiplayer object and now everything works just fine!

  • I have added a TURN SERVER to the multiplayer plugin and now everything works just fine!

  • Thanks.

    I had assumed that if the official chat room tutorial demo project didn't work for me, then nothing would. But there may be a problem with that demo and I might be able to get the multiplayer object to work in a different project.

    I'll take a look at your tutorial and try to do something really simple with the multiplayer object.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I want to create a simple, two player, turn based game. Think tic-tac-toe (noughts and crosses), chess or similar. The two players will play over the internet.

    There obviously needs to be some method by which the game can pass details of one player's move to the other player. I tried using the C3 multiplayer object but I can't get it to work when the players are on different computers. I'm told using a TURN server might solve this but setting one of those up looks a bit complicated and/or expensive.

    So, is there a different technique I can use? I have successfully managed to read arrays and text files from a project file using AJAX and JSON objects. I can update either of these with the current game state, but I can't work out how to write the updated file back so that the other player can read it.

    I have a sneaky feeling that there is an easy answer...what is it?

    Thanks, Jim

  • I have now noticed that if I try this across two PCs connected to the same router the peer always gets kicked. It only works using two browsers on the same PC.

  • Thank you, Oosyrag.

    I shall investigate Turn Servers.