Mirakos's Recent Forum Activity

  • 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.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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.

  • To my dismay I had to find out today that there is no way to convert a string into an expression.

    If I want to check if "Sprite.c"&loopindex, while having c0, c1, c2, ..., on that Sprite, I can only do that if c0/c1/c2/.. are numbers, not strings, via int(str("Sprite.c"&loopindex)). I can't do that if c0/c1/c2 are strings.

    That's why I request the addition of an 'expr()' command, to turn strings into expressions.

  • How else would I set the HP of it?

    Since it's not always "basalt", there will be over 60 different Objects.

    How do I show the game which one is the correct one?

    How do I specify it?

  • I changed language a bit to be more precise.

    By "layer" I didn't mean the layer where you place objects, but the dirt "layer" itself.

    Maybe a link to the current version of the game will help: http://www.kongregate.com/games/Lexoria ... irt-2-beta

    There are 5 Dirtlayers, or Dirtblocks.

    And in the new version, each of them will be composed of 4 parts, to make it more diverse and easier to add new content.

    Here's a screenshot of my problem: https://i.imgur.com/qG8jDQ7.png

    Now, I set the "LayerHP" var to the BaseLayers HP.

    But then, when I want to set the Basalt layers HP to "LayerHP" it sets EVERY object of the "layers" family to "LayerHP", which I don't want.

    The Basalt layer is interchangeable.

    Is it now a bit clearer?

  • I'm working on a game right now, where you dig deep down underground. And there are many different levels (as in strata underground) and "loot" you'll find.

    Now, I've already created a system where each level is divided into 4 parts.

    [Loot]                              (Like crystals or whatever)
    [The coming up Base level]          (For the Transition level Dest. out.)
    [A Transition level with Dest. out] (For transitioning to another type of base level)
    [Base level]                        (Dirt for example)[/code:2fkbxyay]
    
    Now, my problem is, since the level that has the "Health" variable is the base level, how do I let the other 3 levels know that they are supposed to be destroyed?
    
    Since the base level will not always be the same one(dirt/granite/basalt/whatever), I cannot say: "set level.Hp to dirt.Hp", and if I use the family of the base level, it sets the HP of ALL other levels currently on the screen to the HP of the base level.
    
    Containers don't work too, since then the dest. out. of the trans. level fucks everything up.
    
    I am clueless. How would go and fix this/any other ideas?
  • Can somebody make/Has somebody a shader where I the colors in a sprite change alonge a gradient/palette that I can specify?

    So that you don't have to animate every single hue change, and it transitions smoothly from animation to animation.

    The HSL adjust effect doesn't do what I want, since I want to last color to return to the first. Just as in a palette

    It's supposed to look like an organic pulse, at least where I want to use it.

  • I'm looking for an effect that I can tell to change the color in a sprite along a gradient, so that it has a nice transition, but the only thing I found was this thread from 3 years ago:

    But it is for Construct classic and I don't have enough knowledge to import shaders or make them work in C2.

    Does anyone have this effect, oder know somebody that could make one like that?

  • Oh yes, I see now.

    No I did not. Thanks for telling me!

    I found this thread via the search bar, so I didn't really think about it.

    By any coincidence, do you know an effect/plugin that does the same thing?

  • How exactly do I make this work?

    I know, posting in a dead thread is not how I should go about it, but I really hope somebody will help me.

    Where do I put the text? I tried making my own .xml file but I'm not knowledgable enough to do it on my own. Do I even need one?

    Help me please.

  • Right now I am trying create a working saving system for my game.

    Problem ist, that I don't really get how saving works.

    I treid the "save" and "load" actions, but the thing I don't want is, that if I load a previous game where an object is for example at the coordinates (0,0), but then I do an update to my game where some objects are moved, but by loading the old save they get moved back to where they were in the old version.

    I thought that I could bypass this by using SaveStateJSON via Localstorage, but strangely this doesn't work with kongregate.

    Any help or ideas?

Mirakos's avatar

Mirakos

Early Adopter

Member since 10 Dec, 2014

None one is following Mirakos yet!

Trophy Case

  • 9-Year Club
  • RTFM Read the fabulous manual
  • Email Verified

Progress

11/44
How to earn trophies