Mirakos's Forum Posts

  • Whenever I am previewing the game, and close the preview while I have the console window open (the one that open with F12) my whole C3 editor just abruptly closes.

    Is there a solution to this issue? Since it makes it sometimes very frustrating to use the 'log' action of the 'browser' object, because sometimes you don't think about closing the console first and potentially your work gets lost. Which has happened already a bunch of times.

    I am using the standalone version on a windows 10 computer.

    Anybody know something?

  • I'm trying to spawn a area full of squares, and these are of different sizes.

    16x16px, and 32x32px for example, and I don't want any overlapping sprites or empty spots.

    Now, I am trying to do go about it by 'Pick overlapping point' and checking if there are any other sprites of that family there, and then doing sprites.PickedCount = 0, but it does not work at all.

    Anyone have a idea?

  • The problem was caused by a Function using the built-in functions, which was disabled but ther was an action calling it. This broke the file, even thought the function wasn't actually called, just by virtue of there being this action. enabling the function but disabling it getting called solved problem, as did deleting the function.

    I found it by copying my project and deleting stuff from it until the bug stopped happening!

  • It says this:

    action.js:1 Uncaught (in promise) TypeError: Cannot read property 'GetEventBlock' of null

    at C3.Action._SetCallFunctionRunMethod (action.js:1)

    at C3.Action._PostInit (action.js:1)

    at C3.EventBlock._PostInit (eventBlock.js:1)

    at C3.EventSheetManager._PostInit (eventSheetManager.js:1)

    at C3.Runtime._LoadDataJson (runtime.js:1)

    at C3.Runtime.Init (runtime.js:1)

    at async e._InitDOM (domSide.js:1)

    at async e._Init (domSide.js:1)

  • Does anybody know what could be causing this?

    Without changing anything on a .c3p file, it suddenly stopped previewing - in Debug it shows loading 100%, if I click on watch or the GPU profiler it tells me that these features are not in the free edition, even though I have an active and running subscription and I am logged in. Logging out and back in didn't fix it.

    Even if I try to start a completely empty layout it does the same thing!

    I feel very much lost with this.

    Using C3 in Standalone mode, but it doesn't work with C3 in browser either. Previous versions of it work fine.

    SOLUTION:

    The problem was caused by a Function using the built-in functions, which was disabled but ther was an action calling it. This broke the file, even thought the function wasn't actually called, just by virtue of there being this action. enabling the function but disabling it getting called solved problem, as did deleting the function.

    I found it by copying my project and deleting stuff from it until the bug stopped happening!

  • FIXED: I missed setting the Source color for some of the Sprites, and the Effects were named wrong: It was ReplaceColor, ReplaceColor2, ReplaceColor3, ReplaceColor4, and thats why it didn't pick it correctly.

  • I have about 30 'CollectionGradeLevel' Sprites already laid out in my Layout, and I want them to change color depending on what rarity they are, in order to cut down and the amount of animations I need to have in the game.

    Now, it picks everything correctly, but only replaces the color for the last few sprites, and even then it doesn't replace all of the colors but only some.

    Any idea what could be causing this?

  • No, they are not pinned to it.

    Would pinning help?

  • No, nothing like that is happening.

    I also looked at it, and from what I can see, the things that are shifted only share their object type, nothing else.

  • I have uploaded this game to Kongregate: https://www.kongregate.com/games/Mirakos/knive

    And I have noticed that when you have a different zoom level on the webpage, that the game doesn't scale evenly but instead it is all jumbled and unplayable.

    In my previous games I put on Kongregate there was never this problem.

    Anyone have a idea what could cause it?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Oh my god, thank you SO MUCH for finding that mistake! I'm SO happy that you found it.

    Thank you Kriand! :D

  • It first starts the Loader layout, and then after "SetupGame" it goes to the Game layout, and somewhere in the Loader layout it almost always freezes C3.

    Edit: the color and the moving square are to see that it freezes.

  • Now, after changing some of the code, and removing the loop, it still freezes C3. It was working fine an hour ago, and now its broken again.

    How do I share a project here? I don't see an option to attach a file.

  • It is in a function that gets called once at the start of the game, with a bunch of other dictionary entries.

  • SOLVED: The Bug has nothing to do with the Repeat loop, I was just diving by 0 somewhere else and it caused the crash. Huge thank you to Kriand for finding my error!

    Just today I opened my Construct project and it suddenly started freezing the Chrome tab with construct 3 and the preview project whenever I try to preview it.

    I was using the beta release r118, then r119, now I've copied the whole code into a new file that is in release r111, but still chrome, standalone and firefox all freeze the editor and the preview window due to this condition.

    + System: Repeat 160 times

    + (no conditions)

    -----> Val: Add key "Bar"&loopindex+1&"Progress" with value 0

    -----> Val: Add key "Bar"&loopindex+1&"TotalFills" with value loopindex=0?1:0

    -----> Val: Add key "Bar"&loopindex+1&"Number" with value loopindex+1

    -----> Val: Add key "Bar"&loopindex+1&"Income" with value (loopindex+1)^2

    -----> Val: Add key "Bar"&loopindex+1&"Speed" with value 1

    -----> Val: Add key "Bar"&loopindex+1&"Width" with value 8+((loopindex)×1.8)

    -----> Val: Add key "Bar"&loopindex+1&"WidthRandomScale" with value loopindex=0?1:1+((loopindex)÷2)

    -----> Val: Add key "Bar"&loopindex+1&"WidthActual" with value 0

    The loop is part of a function to setup the dictionary entries that the game uses, and gets called once at the start of the game.

    I've already tried disabling and enabling different "Val" Additions (Val being a dictionary), and after removing "Speed" it worked, but now it again freezes.

    It doesnt freeze with repeat being on 1, everything above that and C3 and the Preview freeze.

    For the last 3 days everything was working fine, and I don't think I can really find a workaround for this essential component.

    Anyone have any idea what this may be?

    Edit: Added clarification that the loop gets called on once at the start of the layout.