bholtzman's Forum Posts

  • I'd like to select 2 objects in the same event and was trying to do something similar to the following:

    (Cell.Column = GemX2 AND Cell.Row = GemY2) OR System.Pick.GemFamily.instance(0)

    But I'm finding that as soon as I include the "OR" into the event all the conditions use an "OR" operator. How do I accomplish selecting both a cell object and a Gem object using a pick index n and 2 local variable comparisons to gem instance variables so that the action has both the gem and the cell in scope?

    Thanks for your help!

    Ben

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It looks like my question was answered here.

    But this brings up another question. I'm using a family of Gems to select a random gem from a group. Do I still refer to the newly created object by the family object?

    Thanks,

    Ben

  • I'm trying to make a bejeweled clone and would like to be able to set a couple of dynamic properties for each gem that's being created in a for each loop using a "System.CreateObject" action which places a random gem sprite over each cell in a grid. I'd like to refer to the last created gem sprite to set it's dynamic properties but I'm not sure how to access it after it's been created without creating a new event. Isn't there some kind of local variable scope or closure in an action for objects created in the same action?

    My hope is that since the end result is javascript we can enjoy a similar kind of variable scope inside Construct as well. I'm probably thinking about this the wrong way, but am just trying to wrap my head around the basic rules.

    Thanks,

    Ben

  • Hi, I'm Ben.

    It's a pleasure to meet everyone. I'm very interested in game development. I've been studying it during a great deal of my spare time and have been working towards learning tools and eventually being able to develop decent, playable, releasable, and hopefully sellable games.

    I'm looking forward to seeing how the Construct line of products evolve over time.