bholtzman's Recent Forum Activity

  • I wound up splitting the predicate from the first and condition from the predicates of the or condition into 2 event blocks and just storing the index of the first object in a local variable to be used in the second action of the second event. This seems like a hokey and cumbersome way to achieve what I'm trying to do. But pragmatically it works. I'd love to hear of a more elegant solution if someone has one.

    Thanks!

    Ben

  • I know this is a little late, by about 4 months or so, but I'm thinking that using a dictionary to store each random number as it's used would be a good way to check against what's still available in the random pool. Then only accept numbers that aren't already in the dictionary.

  • I'm doing a bejeweled like game which is very similar in concept to candy crush. I'm also just learning Construct, so am clumsily solving the Construct way of doing things. I'm finding that using the System.For events is coming in very handy in both placing tiles and testing for matching sequences.

    That being said, I'm happy to try to answer simple questions if you need some help. Although there are certainly more capable users who have already gotten through the learning curve.

    I also noticed a match 3 template for sale in the Scirra store. https://www.scirra.com/store/royalty-free-game-templates/candy-can-combo-1663 It looks really nice, and might be a good way to learn how to handle the required logic. But just the same, might be somewhat overwhelming if you're just trying to learn the system like I am.

    Best of luck in your project.

    Ben

  • 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

  • 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

  • Try Construct 3

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

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

bholtzman's avatar

bholtzman

Member since 13 Mar, 2015

None one is following bholtzman yet!

Trophy Case

  • 9-Year Club
  • RTFM Read the fabulous manual
  • Email Verified

Progress

11/44
How to earn trophies