Ecation's Recent Forum Activity

  • Hi!

    Is it possible to defer the loading of certain objects or images that you know will not be needed early in the layout, in order to make the initial loading time of the layout faster?

    Tagged:

  • Very typically, then answer came to my mind as soon as I had typed in the question:

    The objects with the blend mode had their "initially visible" turned off. As soon as I checked it back on, the effect started working also in the game preview.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I have a weird issue when I'm creating a mask using "Destination out" for some objects and "force own texture" for the layer.

    Everything looks like I would expect in the editor (the objects are cutting a hole in the layer and revealing the layer behind), but for some reason when I run the game, the effect is completely gone and I can no longer see a hole in the upper layer.

    Has anyone encountered a similar situation?

    Tagged:

  • Would be nice to have support for global layers for the dynamic layers feature.

    This way we could design our menus in a separate layout, without ever having to worry about including a layer with the same name in each layout. If there are tens or hundreds of layouts, it can be quite a chore.

  • That indeed does it! :)

    Thanks for your help!

  • After many years this still seems to stump me: I have some instances of a family outside the visible screen area. Every x seconds I want to take one of them and move them to the the visible area, but only if there are no instances of that family already on-screen. In other words, only one instance of that family should exist at the same time on the screen.

    I tend to go for the "is on-screen" condition, but then my subevents wont fire if that condition is false.

    Is there a simple way to do this or do I need to start adding variables to keep track of the amount of family instances on-screen?

    Tagged:

  • Objects can be added to multiple families. You shouldn't need to get rid of the old ones or consolidate variables.

    Thanks for your responses!

    The problem with the new family would be that it would not "see" any of the instance variables of the other families (in the set action dialogue), so I couldn't change them.

    tarek2 I think I might need to go with your idea of storing the family type in the y-axis of the array. That seems like the least inconvenient option that would let me keep a lot of my existing code.

    Thanks!

  • Thanks for your reply!

    The difficulty with "pick last created" is that it requires me to select an object, but I don't know which of the 20 objects to pick.

    Even families don't seem to help in this situation, since the objects can be members of two different families.

    I considered adding them all to just one family, but then I would have to move all the instance variables from the two families into this one unified family, which in a complex game sounds like a total nightmare..

    I wish I could just do what I do in JavaScript and store a reference to the newly created object..

  • I have an array of 20 object names.

    When I call a function called updateObjects, I need to loop through the array and create the objects based on the object names in the array.

    After each created object, I need to change an instance variable value of that object (I'm just assigning the loop index to the created object).

    How can I refer to the newly created object in order to change it's instance variable?

    Tagged:

  • Thanks dop2000 that looks really promising!

    Do I need to do something in addition to typing that in the console?

    When I put this in the console:

    c3_callFunction("LogRuntime", [])

    I get:

    VM161:1 Uncaught ReferenceError: c3_callFunction is not defined

    at <anonymous>:1:1

    EDIT:

    The problem was that I was running the game in Debug mode, when I tried with regular preview, I no longer got that error! But now there is a pending promise, that doesn't seem to resolve..

  • Referring to this C2 thread:

    construct.net/en/forum/construct-2/how-do-i-18/values-using-console-116907

    I was wondering if there is away to explore the Construct 3 runtime interactively using the Developer tools console?

    Tagged:

  • You do not have permission to view this post

Ecation's avatar

Ecation

Member since 12 Oct, 2020

Twitter
Ecation has 2 followers

Trophy Case

  • 4-Year Club
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • x2
    Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

8/44
How to earn trophies