[RESOLVED] Setting a list of layers

0 favourites
  • 8 posts
From the Asset Store
Creepy Sprite Font suitable font for your Dark/Horror/Halloween games.
  • Hi guys, I think I came up to the C2 borders. Anyway, better to ask that before thinking too much:

    Is there a programming possibility to set/change i.e. same scale for a list of layers?? I've tried without success to write: "Layer0","Layer1",... under the Layer tab of Set scale action.

  • Bump, I suppose that the silence means "No, there is no way for now..." And me personally, I couldn't find an intuitive way too.

    Then please move that thread to the C2 suggestions topic. I believe that it would be very useful feature.

  • Hi,

    do you mean this?

    <img src="http://dl.dropbox.com/u/1685424/scale.PNG" border="0" />

  • There's no C2 suggestions forum D: ... And the silence doesn't mean "No, there is no way for now..." ... it means "What is he talking about ? perhaps he could explain more ... " For me atleast ...

  • Hei, thanks for asking, where could I know what the silence meant... <img src="smileys/smiley17.gif" border="0" align="middle" />

    I have about 10 layers. I'd like to zoom in and out some of them (7), the rest remain as they are. So my zoom works with the layer scale action provided by the System object. I couldn't find a way to scale all 7 layers at once, but I'm writing seven times the sponglehammer suggestion. And that's every time I'd like to do something with those layers.

    Now my question was if there is a way to do it as a list, I could imagine a solution which looks like:

    Set LayerScale("layer0", "layer1", "layer2", etc) scale to XX.0

    It's a pity, but that function didn't worked for me. How is it on your side, guys??

  • You could use the function plugin zoom/unzoom in the 7 you want.

    scirra.com/manual/149/function

  • You should be able to scale the layout (Set layout scale), but set the "Scale rate" on the fixed layers to 0. This will scale all of your layers together, except the ones flagged as disabled (0).

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks, this is what I call nice brainstorming...

    cincipon: Nice tip, I really haven't tested the Functions object until now and this could be a nice work around for such a problem. It works.

    <img src="http://www.colarion.com/construct2-test/Function.jpg" border="0" />

    blackhornet: Yes, you are right... The layout scale functions exactly as a scale of the list of all layers. Of course I have to set once the scale factor for each layer independently.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)