IcticStep's Forum Posts

  • Hello, guys. 7 years of solo development ended and I want to share with you incredible story of releasing an enormously big project(as for me) with Construct 3. I spent nearly 3500+ hours and have almost 7k actions in the project.

    Few words about the result. In my game you should act like a hacker-programmer(not actually doing harm to others but being ultimately pro). The main thing: gameplay always changes, so you can:

    • test games inside my game, find bugs and earn money;
    • create beautiful websites;
    • solve puzzles as a programmer;
    • browse the in-game internet pages(all things are clickable);
    • buy courses and books to open new jobs of freelance.

    Game have 5 different endings based on you decisions made during playing.

    Direct Result was my dream-game and my first step to become a professional game-developper. I hope I would inspire someone by sharing the fact: now, my game arrived to Google Play and it feels like a magic. I spent about 3500+ hours making it and here you can see my project statistics:

    Size of game is serious, but Construct handles it extremely good. Players who already played my game love it, so I am happy.

    I want to add that team of Construct 3 developers is amazing, too. You can see 2 lines of JS-code here and you would be surprised but they were written by Ashley after my question on a Construct forum. Also, each my bug-report was turned into fixes, which make my way comfortable. Thanks for all that.

    I would be appreciated if you play my game(if you interested in, of course). You can find it here: https://play.google.com/store/apps/details?id=com.icticstep.directresult

  • Your project contains a lot of JS. But you are not writing the code by yourself. Construct 3 is made on JS and such errors means problem with engine. So, only developpers can help you.

    As far as I have such problems, I can advice you to try making a build in firefox because it has better JS support. It's better to develop the game using Crhome, but whet it comes to building big projects - firefox is better.

    Anyway, you can just turn off minifier. I use this solution because my project is to big for minifier. Here is some statistics:

  • "document is not defined" suggests you've turned worker mode on. You can't make DOM calls in worker mode, so you'll have to turn it off. If you leave it on "auto" you'll also automatically get DOM mode if you add any JavaScript code.

    A lot of thanks! Finally, my problem is solved! Thanks for time spent on my question and thanks for a such good engine, which makes dreams come true!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I use:

    document.querySelector("html").style.backgroundColor = "#fff"

    document.querySelector("body").style.backgroundColor = "#fff"

    which I saw Ashley post somewhere a year or two ago and works great for me (obviously sets bg to white)

    It looks like working code but in my current project it doesn't work and I have still this error:

  • Ashley I have made a new project and write this code. That worked fine. But in my main project I have this error:

    How it can be resolved?

  • I tried exactly that code also running in 'On start of layout' and it worked for me.

    It is also work for me but only if I write this into console after pressing F12 in the preview. But it doesn't work from event sheet. Also it doesn't work if preview is in debug mode. Can it be blocked by something? I have tried making this on different layouts, few time checked if the event sheet is connected to layout and even toggled disable for all code on the event sheet except this. But it doesn't work. Have you any idea what else I should check to find out why it doesn't work?

  • You should add to your objects behavior "Persist". It will persuade them to remember their state after changing layout and return to current.

  • You can change the background color in Project Properties.

    There isn't any built-in way to change it at runtime (I don't really understand why you'd need to, and nobody has ever asked for this before), but you should be able to do it with a snippet of JavaScript code, something like this:

    document.body.style.backgroundColor = "red";

    Hmm... That does not work. I was looking for something like that but I have done such thing in event sheet and it is not working:

    Just for check I changed the JS-code to

    	alert("1");
    

    And it worked. So, as far as I understand, I can't just copy/paste code, you have given to me. Perhaps, there is some kind of protection of this property. What should I do then?

    It is so strange that nobody asked for this before. Maybe, they give up as early, as see some difficults but I really need this. My game works in 1920x1080 and on some bigger screens it leaves a lot of black space outside viewport(I understand that I can change color of this space in project properties but it will be forced for all layouts. In my situation I have few layouts with different background color, so if I choose one - it won't fit to other layouts). Also, I can't just use "Scale outer" fullscreen mode, because it brakes many game layouts and nearly half of the game should be made just from beggining. It is very bad idea - I have already spent nearly 2000 hours on development and now I am making final changes(colors of background is one of them).

    I am begging you: help me to resolve my puzzle. I have read half of Google and found nothing. I don't know that to do now.

  • I see, in this case in Properties set Fullscreen mode to Scale outer. After this, changing layer background color on the lowest layer will change the color of these black bars.

    Yeah, it should work. Thank you, but I still have a little hope that I can found one more way to resolve this because I have been working on this game for nearly 2 000 hours and have a lot of objects that are outside layout and shouldn't be shown to the player. It's a little bit scary when I think how many layouts should be fixed.

  • Ashley Is it possible at all? Maybe using some scripting or something like this?

  • I want to make a game, but I thought it would be fun to make it with someone. Both Unity and Unreal have multi-user editors that you and someone else could work on the same project at the same time with, I was just wondering if Construct 3 could do something like that or if we'd have to work on the game one at a time?

    You can easily do that using SVN. Read about this here: construct.net/en/tutorials/collaborate-projects-svn-321

  • I am not talking about layers. I mean space outside layout. Look at this picture:

  • I need to change a whole background in my game to hide the fact of using only 1920x1080 space on the screen. It should be different for each layout. How can I do that? I have found only way to set it one time at the project properties.

    I believe the admins don't work on weekends - it's a small company, and everyone needs a break from work to switch off and get on with their lives and do their hobbies, see friends and family.

    If they peeked at the forum every single day for the past 10 years, then that'd drive anyone insane.

    Rest assured, it will be looked at and maybe even fixed on Monday.

    Wise words. I will hope for the best.

    I have the same awful story. Ashley are you working on it to give us a fix?