netdzynr's Recent Forum Activity

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

  • Try Construct 3

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

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

netdzynr

Member since 17 Dec, 2017

None one is following netdzynr yet!

Trophy Case

  • 7-Year Club
  • Forum Contributor Made 100 posts in the forums
  • RTFM Read the fabulous manual
  • Email Verified

Progress

10/44
How to earn trophies