dop2000's Forum Posts

  • No, that won't work.

    You need to use "AJAX On any completed", and inside this event compare AJAX.Tag. If you need, you can also get file number by removing "A" from the tag, for example int(replace(AJAX.Tag, "A", ""))

  • I don't know. Run the project in debug mode, check array contents, try changing events, check debug mode again etc. It's basic troubleshooting.

  • https://www.google.com/search?q=mime+type

    Just leave it empty

  • use "Invoke download of string" action.

  • Create another sub-event and move "Browser invoke download" there. It should run after the loop, not inside the loop.

  • I told you in my previous comment that you forgot to insert line breaks between each JSON string. Add line breaks (newline) and it will work.

    For each Dot : Set variable s to (s & Dot.AsJSON & newline)

  • Please post your code or project file.

  • Looks like there is no line breaks between each JSON string. Other than that, what do you worry about? Just create new Dot instances and set them from these JSON strings one by one.

  • Never use "Trigger once" when multiple object instances are involved. Events like "Enemy overlapping bullet, Trigger once..." will cause all kinds of bugs and problems! Same goes about using "Trigger once" inside triggered events, loops - don't use it unless you absolutely certainly know what you are doing.

    You need to post your project file or a screenshot of your events.

  • You can't get dots from another layout.

    What you can do is save dots for each letter in JSON format in a text file. Then when you need to re-create dots for any letter, you read them from that text file, create dot object and load it from JSON string.

    Something like this:

    // SAVING DOTS FOR ANY LETTER
    For each Dot : 	Set variable s to (s & Dot.AsJSON & newline)
    
    Browser invoke download string s
    // then save it as a text file
    
    
    
    // RESTORING DOTS FOR A LETTER
    // First read the text file into variable s with AJAX
    
    Repeat (tokencount(s, newline)-1) times
    	Create dot
    	Dot load from JSON tokenat(s, loopindex, newline)
    
  • Many popular addons have been ported to C3. Don't know about Cranberrygame addons though, you will need to research. Also, there is Plugin Converter which you can try, but it only supports runtime 2.

    If you can't find Cranberrygame addons for C3, the best option would be removing them from your project, then migrate to C3 and find alternative plugins/addons. For example, there is now a native sharing plugin in C3.

    Also, take a look at this massive collection by ChadoriReborn, it's not free, but well worth the asking price:

    chadorirebornxd.itch.io/construct-master-collection

    construct.net/en/forum/construct-3/plugin-sdk-10/construct-master-collection-139046

  • With hundreds of objects you should definitely disable behaviors for objects which are too far away. You can use "Is on screen" condition or distance() expression. So you can do something like this:

    Every 2 seconds:
     Pick EnemiesFamily where distance(EnemiesFamily.x, EnemiesFamily.y, Player.x, Player.y)<2000
    	EnemiesFamily enable behaviors
    
     Pick EnemiesFamily where distance(EnemiesFamily.x, EnemiesFamily.y, Player.x, Player.y)>2000
    	EnemiesFamily disable behaviors
    
    

    Note, that if you have too many objects, even disabled behaviors can affect performance. You might want to create objects only when player gets close to them, and destroy objects which are left far behind.

  • It's possible, but Construct is not the best tool for this job. You need to read the spreadsheet data into an array, then loop through the array to find records for a particular client, and then display them somehow - feed to a textbox or list.

    You can do the same much easier directly in Excel, in literally a few clicks. If you need to edit/review data using forms and reports, I suggest Microsoft Access.

  • I opened "Chat room" template in C2 just now and it works perfectly fine.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Wow, this almost scares me. How easy is it?

    If you open the capx attached to the tutorial, you'll see that "Split screen" group has only 6 events.

    If you paste complete layers onto the canvas, instead of individual objects, the code will be even shorter.