netdzynr's Forum Posts

  • I am doing more or less what you propose. But nothing is being destroyed, only made "visible" or "invisible" (using text characters of a custom font).

    Thanks for your recommendations!

  • Thanks for the suggestions. Based on your comments, I decided to dynamically create game objects in position, rather than manually positioning everything in the layout. Of course, this makes things more flexible in the long run and avoids having unneeded objects present in the layout.

    You kind of have a sense of what's going on. Each element of the group of geometric shapes (line or circle) can be enabled or disabled (and potentially recolored), and there are 10 "groups" in the layout. The gameplay isn't intelligible at this point -- it's got a long way to go, but the end goal is a visual puzzle game.

  • Oh, I'm sure I misunderstood the use of containers. I was hoping I could use them as a grouping mechanism to position collections of objects around the layout. But if not, I'll make do and carefully position elements by hand. I placed each set of instances on their separate layers so at least I can select them independently.

    So going back to my original question... If I don't employ containers or families, is there some way to abstract the reference to an instance, something like "shape1 of layer 2", instead of referring to the UID of each instance? At this point, I will have around 10 instances each of 14 source objects, so keeping track of UIDs is quite tedious.

    Thanks as always for your help.

  • I'm trying to figure out a way to have multiple groups of objects where an item within a group is addressable and can have its properties changed. I read up on families and containers, and it seems using containers is the way to go. I created two containers that hold the same elements (the second container is apparently an instance), and each container can be manually selected and recolored, (shown in screenshot). But there's no name or UID displayed for either container. So how do I reference/pick one element of container 2, for example?

  • Thanks for the response. The latter option is what I'm looking for, and works here. But being new to Construct, does adding a Browser object add much overhead to a project? The docs seem to say that the browser object simply exposes capabilities that are already present.

  • How do I set the character of button text to a Unicode character that can't be typed on a keyboard? For example, Arial includes Greek characters, one of which is "?", represented as 'ϕ' in HTML and a Unicode value of 'U+03D5'. How do I assign this character to the text of the button? (using code, not cut and paste)

  • Cipriux

    OMG, that's perfect, and you even included audio! And I see there's a choose function I didn't know about. Christmas comes early! Thank you so much! (FYI, seems to work fine in C3)

  • What I'm doing is setting the height of a sprite (one value only, not using a point location). I want the sprite's height to continuously animate to different random values, like a bar in a bar chart that constantly changes. I'll look at On tween end, but thanks for letting me know if there's some other method I should use for this. Appreciate your expertise!

  • OK, thanks, but how can this be done with looping (ie Flip Flop, Ping Pong) enabled? I want the Target to continuously change with random values, as opposed to assigning a single random value at start.

  • Very grateful to have to have found this behavior. I just started with Construct 3 and LiteTween, and am wondering if there's any way to use the random function (or a random value) in the Target property of the behavior. Thanks in advance and happy holidays.

  • Thanks for the example and pointers. I know about the use of instances, but just to confirm my understanding: when manually creating instances, command (or alt) + drag on an object creates an instance of the object, while "clone" creates an entirely new object, yes?

  • OK, regarding Part 1 of my question, maybe I found a bug?

    If a font property (ie font-family) is applied by itself, C3 doesn't appear to apply any CSS.

    If a non font-related property is applied, then CSS is rendered.

    Is this intended behavior?

    Regardless, I could still use suggestions regarding Part 2 of my original question.

  • Am just starting to work with C3 and am wondering how to go about setting the interaction of a grid of multiple objects (could be buttons or sprites). Imagine a tic-tac-toe board: how would one collectively set the action of a group of squares to toggle their appearance between X and O? Setting up an action on each object seems inefficient. Is there some way to apply the toggle action to a group of objects, sort of like a class behavior?

    I'm new to C3 so apologies if this info is already explained somewhere.

    Thanks,

    • Scott
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'm evaluating Construct 3 for my game project and am hoping somebody can instruct me on the proper way to style buttons in C3.

    Part 1

    I've been trying to use the "Set CSS style" action to set a button's font to a loaded web font (but am looking to change any font property at this point). I have this action triggered at by a System > On start of layout event. So far I'm not able to change any CSS font property of a button (size, font, etc) -- the button's font appearance remains unchanged. Background color works. I've tried both enabling/disabling Auto font size. What am I missing?

    Part 2

    Eventually I'm looking to change the font applied to a set of buttons, numbering anywhere from 20 to 60. To do this via Startup events seems inefficient. I've read online about the CS2 examples using an imported CSS file (style.css) with an id reference, but have been unable to make this work either. What's the proper C3 way to change the "font-family" property of entire sets of buttons in one go? Do I need to set the CSS of a layer (am guessing maybe this is a DIV in the actual layout)?

    FYI, I prefer to use buttons + custom fonts rather than sprites because I'm using icon fonts that contain all the symbols I need.

    Am very new to Construct -- thanks in advance for responses/suggestions.

    • Scott