Dramamini's Forum Posts

  • You can change CORS Policy when the file is uploaded on your server.. but what happens when you use a google sheet file?

    Google has changed CORS Policy (due to security reasons) and you cannot open files using other programs, anymore.

    I found a solution for anyone who is interested in:

    The link we were using in order to open a csv file was something like this:

    https://docs.google.com/spreadsheets/d/e/.../pub?output=csv

    In order to bypass cors policy and open your csv file, the link should be in this format:

    https://docs.google.com/spreadsheets/d/SHEET_KEY/gviz/tq?tqx=out:csv&sheet=SHEET_NAME

    * You can find the sheet key by opening your sheet file in google drive

    https://docs.google.com/spreadsheets/d/SHEET_KEY/edit#gid=0

    ** SHEET_NAME, not your file's name

  • I had "Bundle Addons" checked. I don't know why it asks for the addon...

    Anyway. I removed the addon, you can open it now..

    Thank you very much for your interest.

    Console says: "...... has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource."

  • Hi!

    Few months ago, I made a project that reads csv data from a google sheet file, using Ajax: request URL. Everything was working fine, project closed. Yesterday, I re-opened it but Ajax request is not working any more. Is it working for you or should I fill a bug report?

    Here is a simplified .c3p file for testing:

    https://drive.google.com/file/d/1ZUt6Q77UqVXOBeprR4px-emjxJYagks3/view?usp=sharing

  • As I see from your screenshots, it's not only your blue background that's being dragged right and down, but also all the elements in it (the whole layer / layout). Maybe you should upload a minimal project representing this issue for further investigation

  • Maybe your sound is being triggered on every tick during animation. Try to add “Trigger once”. You can find it in system special conditions.

  • Try to disable any physics, particles, sine behavior etc, and then take the screenshot. It worked for me this way.

  • If you run an empty project or another project, it crashes?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Try clearing your browser's cache.

  • Hi! How many megabytes of memory is your layout using (after the loading screen)? You can monitor it either from debug window or right click your project's name (on project panel) and select "tools -> view project statistics".

    If there is a memory issue, there are some things you can do in order to solve the problem:

    1. Delete one by one the objects in your layout. Use debug mode after every deletion, in order to see which of them are significantly increasing memory.

    2. If you see that "ObjectX" is using a lot of memory, investigate it. View spritesheets (right click your project name (on project panel) and select "tools -> view spritesheets"). You may see "ObjectX" is being merged along with a big background or with other objects that you don't need them in your layout at the moment.

    3. Remember that jpeg images are being exported alone, as a single spritesheet, with no other sprites next to them, so convert -where possible- your sprites to jpeg. You can set the export image format via construct's animation editor.

    4. If you are using sprites as "hotspots", for example a transparent sprite as a clickable area, resize it through the editor and make this sprite as small as possible, for example 14x14 pixels, and then stretch it in the layout.

    5. Try to reduce the "max spritesheet size" from advanced properties panel. At default it is set to 2048 you can select a smaller size.

    6. Read C3 documentation about memory usage here:

    construct.net/en/make-games/manuals/construct-3/tips-and-guides/memory-usage

    7. Also read "Remember not to waste your memory" here:

    construct.net/en/blogs/construct-official-blog-1/remember-not-waste-memory-796

    I recommend to repeat this process for every layout in your game that uses too much memory.

    The good part is that sometimes low end devices help us programming our apps more efficiently.

  • I think having the option to increase the duration between touch start and touch release to return true could make a lot of games be more accessible and user-friendly.

    I totally agree.. it would be a great addition. Tap gesture is a little bit frustrating as it is.

  • Hi to everyone!

    I want to take a snapshot of current layout in order to use it as background for a menu, when the user clicks to go to the menu.

    So, I do System -> Take snapshot of canvas, wait action to complete and then, go to "menu layout". There, On start of layout -> set background image from url "CanvasSnapshot". (Just like Construct's example at start page.)

    On desktop, this procedure in my project works fine, without any delay. Also when I preview your example both on desktop or mobile (android), it works fine, too.

    But... when I run my project on android, it takes 3-4 seconds in order to take the snapshot before going to next layout. What is responsible for this delay? Is there something I can do in order to reduce the delay of taking a snapshot?

    See this example:

    drive.google.com/open

    (It is construct's Space Blaster, with a snapshot button added in order to show you what I mean. On desktop works fine, on android not)

    Thank you very much!

    Tagged:

  • Thanks again Ashley! I did it the way you said. Keep up the good work

  • The problem is that I don't want to place a specific object, but an object by name, defined by a variable. So I'm thinking these solutions:

    1. If it is possible, to show the next layout after the object is drawn.

    2. To make a global layer, create the object at this global layer and then change layout. But even if my layer is global, the object is being destroyed at the end of the layout.

    3. To place an object (without image) on the global layer and use "load image from url" in order to choose as image a url of another object.

  • Ashley thank you for the response! Congratulations for the wonderful work you all do!

    Unfortunately it's not working for me.. There is a slight delay when the new object is created.

    If you have time, check a simple project that I made, in order to reproduce my problem: drive.google.com/open

  • Hi to everyone!

    Is it possible to create an object (by name) ready to be shown exactly on start of the layout? When I use the action "On start of layout, create ObjectX", the object is created a "tick" after the layout is shown. I want the layout and the object to be shown together at the same time.

    Thank you very much!