nerdError's Forum Posts

  • It is a really cool feature, I will definetly use it often! My layouts are biiig :D

    Though, I wish one could click on an object on the layout and in addition to "Find all references" option there will be "Show in the instance bar" one.

    It's nice to find objects trough the instance bar, but I wish it could be done the other way around too.

  • It's kinda funny that on almost every topic I read Ashley say "dont worry about performance. difference is not really noticable. 99.9% of projects doesnt need this" and so on. And then guess what? Peformance was literally the main problem i had with C3 through all those years. And i make pretty simple games! Some things in C3 cause absurdly bad performance and you will never read about that in docs, and the only way to figure out is to extensive testing and comparing different approaches. Without WebGL debugger and literal months of trial and error i would've never made my games playable on mobile or low end devices.

    In most cases i agree with Ashley, but...

    Ashley "dont worry about performance" Gullen

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Is there a way to make sprite fonts sharper? No matter in which size or scaling i make them, they always look so blurry compared to default Text

  • Use Text.TextWidth and Text.TextHeight expressions.

    Hm, for some reason i remember that they didn't do what i wanted, but maybe i just used them wrong. Thanks for the suggestion!

  • I want to measure actual text size (not the Text object size)

    So, i want to get this (bounding box or something like this)

    Or maybe at least get a width/heigth of some text in specific font and size.

    I know about measureText js function, but it doesn't seem to help much, but maybe I just used it wrong

    Tagged:

  • After a bit more testing and observation today, I'm almost certain that it's tied to autosave.

    As soon as my project autosaves, I can expect a long manual save straight after, no matter what (while using project folders). Meanwhile, disabling autosave results in no longer getting a long save time intermittently.

    Interesting guess, i will check it later! But yea, for me it definetly not the project files size, and also it's not tied to actions i make, it's just seems random to me, so it easily can be related to autosaves

    UPD: oh, i saw Ashley answer on GitHub, seems like you were right! Im so happy this problem will be fixed, I was struggling with it for a year at least now!

  • Are you saving to a c3p file or a folder?

    I noticed that oddly enough saving to a single c3p file is much faster than saving to a folder.

    That was about a couple of years ago, I didn't try using folders again since then though.

    Yeah, I'm saving to a folder, because editing scripts outside of C3 won't work otherwise

  • Check the number of files in Images and other folders.

    Each animation frame is saved as a separate file. And if there are many thousands of them, the project will take a long time to load and save.

    Well, yeah, I have 1200 images in the folder, but they all have a total size of 700 kb. I mean, it's just nothing. It should take a less than a second to process them all, computers are fast enough nowdays. And, anyway, what can I do about that? C3 doesn't allow me to handle sprites in any other way

    And yeah, I think saving each animation frame to a separate file is a bad idea, just because of how Windows works, as I know, and again, can't do anything about that.

  • I have a pretty medium project

    I use project folder format, because most of the game logic is written in TypeScript and compiled into one ~2 mb js file included in the project, so I don't have much script files or events in the project. Total size of the project is literally 10 mb!!!

    And the saving can take from 5 second, to full 2 minutes, and also my PC can fully freeze for 10-20 seconds in the process. I just can't imagine what can you do for 2 minutes with the 10 mb project, and especially to make PC freeze as hell. And also it doesn't matter what changes I make. I can make like 30 changes to the scene, and saving will take 10 seconds. And the same time, I can edit one action in event sheet, and the saving will take 1 full minute.

    I use latest stable C3 version, and latest stable chrome versions. Chrome extensions doesn't affect that at all, I checked multiple times. Also, i have a pretty big layout. Probably this is the problem?

  • Use webpack-dev-server to get auto reload / modules replacment when saving files

    Dev-server will re-build your scripts in folder, but Construct 3 anyway wont load those files automatically.

  • Check out any tutorial on how to configure TypeScript + Webpack. Create one empty script file in Construct 3, save the project as a folder, and make Webpack build a bundle along the path of this script, and that's it. Yes, you will have to click "Update scripts from folder" every time you change your scripts, but this is not such a problem. I've been doing this for months. Now the project is 5K lines in TypeScript. I feel pretty good.

    The webpack also allows you to use NPM packages without any problems.

  • How can I use dev tools? I'm sure it was fine last time I used it (several months ago), but it's not possible now, both for C3 self and preview

  • I am using C3 w/ Chrome and I save as Project Folder also. I am editing my JSON Project files in an external editor and using the 'Reload All From Folder' function to update them while the Project is open (right click on 'Files' in Project bar.) I just checked and the 'Script' folder also has the same type of option (but I have not tried it yet.)

    It's not automatic sync which would be nice, but at least you don't have to reload the project.

    This may be a beta feature, I can't remember if it's in 'stable' yet.

    Seems like it's a beta function. On nwjs version i can use only stable releases of C3, anyway.

    But i glad to hear that Scirra already work in that direction

  • To be clear, by "Cant be edited" i mean "Can't be edited while C3 is running. Changes only occur after restarting of C3"

  • I really like that Construct 3 has its own built-in and quite convenient code editor.

    But I want to use an external code editor, because I lack a lot of functions. But I can't do it.

    I use Desktop NW.js version of Construct 3. When saving the project "as a folder", I get access to the script files, but if I change them outside of Constrcut 3, this will not affect the scripts in the project in any way.

    Can you make it possible in Construct 3 to work with script files directly? So that I can edit them using an external program, and all changes also occur in the project?