greenleafvt's Recent Forum Activity

  • I made a list and populated the fields with:

    1. Layout 1
    2. Layout 2
    3. Layout 3
    4. Layout 4

    How do I make the dropdown functional so when item 0 is picked the the layout changes to Layout 1

    when item 3 is picked the layout would change to Layout 4 etc.

  • The Pop Lab demo is a good place to start:

    construct.net/make-games/showcase

  • I have a situation where I am loading a bunch of random values on startup. Right now its just the colors for testing. It would be color and shape down the line. The random values create different "packs" the packs then need to be selectable and load into another layer or layout where I will set up a way to edit them (change shape and color manually)

    So I made ap capx:

    drive.google.com/file/d/18VZ7ewlgghsPN42YicNPCNBBJnEoPK0r/view

    Two questions:

    So whats the best way to transfer and have the selected pack show up in the other layout or layer?

    In the example capx I have the pack selector turn off layer 0 and load the Edit layer.. However notice the buttons on the Edit layer don't seem to work even though that are set up the exact same way? Any Ideas?

    Thanks for reading.

    Select a pack:

    drive.google.com/file/d/1YxcKkgsnAIJZoB7cr1rxnQu_-_X0E_BB/view

    Load that random pack in another layer and eventually edit the results:

    drive.google.com/file/d/15oS-OkStbOdBs-Hm-yfWQurxqAW1X_TA/view

  • Probably may ways to do this but let say I have a layout that loads random images and I have another layout that I want to customize one of the random generated images - lets say change the color or change an animation frame. Passing the instance generation values is eluding me at the moment.

    Try and make an example tomorrow but imagine a square, triangle and circle as options and them they get loaded into edit layout where you could change the color or maybe even change the shape again maintaning the color?

    Any Ideas? Using PNG files

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Ok.yeah I see the value behind the Group_ID variable now. The container function was how I was able to get around this problem at first but the variable seems like a much better way of handling it. Guessing I need to move into arrays in the end as I need some way of passing the randomly generated image to a edit Page (Another Layout)

    and/or I'm thinking the best practice would be to have a function making the random value - then sending the random value to the variable. As apposed to having the variable instance frame or color be a random itself.

  • Thanks Kriand,

    The frames work much better then all the separate animations. However I have a question for you. I need to make many instantiations of this object grouping. If I just copy and paste the instance I get some weird interaction between the instances. Example changing the color value of the piece by clicking on it changes not only the piece you are on but the other instantiation as well. When I put the object sprites into a container everything works great. No crossover problems at all. But The problem lies in the other places I want to use the "charms" - These other places need only one "charm" loaded but now it thinks it needs to load all the container items. Can you point me in the right direction to handle this?

    Example attached - See that the "bars" work fine in the container but now the "post" tab items are getting effected by the container as well. What would be the best practice here to get around this problem?

    1drv.ms/u/s!AjhAqDbxsedphDcktr58-qxN5r9g

  • Hi kriand,

    Getting weird results but maybe its from not being able to put RndFrame in the Set Animation command.

    If you get a chance maybe look it over for me.

    Thanks

    1drv.ms/u/s!AjhAqDbxsedphDVar8ZR1XAlkW0Y

  • So I have an instance that has many animation frames. Lets say 100. The instances animation frame is picked by random. I need to mirror this instance.

    Imagine a barbell - if you randomly pick a 20 lb weight for the left side you want to put a 20 lb weight on the right side. Is is possible to do this without making a copy of all the frames for the second weight? Reason being It would be good to edit just one set of animation frames and not have to think about all its duplicates when changes are made. Also imaging displaying 10 instances of the barbell at once.

    http://liquid-glass.com/weights.jpg

  • What would be a way to display items in a block/box an have them center in a box no matter how many their are? Example 4 items center very differently from one or two. The goal would kind of be kind of like an inventory that would have configurable items. (The items have at least three images that have custom effects . images loaded)

    I'm a little confused in how containers vs. families. I tried getting this to work with containers but It only spawns the first iteration. Imagine I'm making a container (box) that can have 1,2,3,4,5,6 configured items inside and I want them to be arranged in rows or on a grid. Doesn't appear that you can add items to containers once they are in a family?

    http://liquid-glass.com/CONSTRUCT/EXAMPLE-1.jpg[/img]

    http://liquid-glass.com/CONSTRUCT/EXAMPLE2.jpg[/img]

    http://liquid-glass.com/CONSTRUCT/EAMPLE3.jpg[/img]

  • Kriand,

    Excellent! that was what I was trying to do. The system-pick Box.UID was what I needed for sure. Also thanks for showing me that I didn't need to change the animation and could do it through effects. Like learning something new about Construct 3 every day

    [quote:15812vg0]

    Another and more flexible way would be the effect 'SetColor'. Put a color code to an instance variable a load it on start to the effect.

    https://1drv.ms/u/s!Ap_-qxoGKbDcg0Bw2l5PhWECSTNF

  • Working this out thanks for the clues.

  • Lets say I had a grid of 18 instantiations of a green block and I wanted to click on one of them and then change the animation set to another color based on clicking on a grind pallet of 6 preset colors.

    What would be the best practice for doing this? Right now I'm doing it random but would like to be able to select the random "UID" and have the user be able to set it to a preset color.

greenleafvt's avatar

greenleafvt

Member since 23 Apr, 2015

None one is following greenleafvt yet!

Trophy Case

  • 9-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

13/44
How to earn trophies