dirkdrie's Recent Forum Activity

  • Hello,

    I have a layout with 10 sprite instances, each non-visible by default.

    I'd like to make each instance fade in seperately and become visible, but one by one instead of all at the same time.

    How should I do that?

    Thanks!

  • Thank you. I've tried to work with the example, but it isn't completely what I was aiming for...

    I posted a new message, which hopefully pushes me in the direction I was looking for.

  • Hello,

    I would like to make a puzzle game. Therefore I've set up a grid of 81 sprite instances (aligned as 9x9 instances on the layout).

    All instances have the same starting animation frame.

    When I select one instance in the grid by clicking on it, let's say Sprite instance 10, which is the second sprite on the second row (because it's 0-based), it should 'trigger' all instances directly surrounding the selected instance. In this example, instances 1, 9, 11 and 19 (the ones above, on the left, on the right and below) should advance 1 animation frame. All other instances should remain intact.

    Preferrably I would like to use a simple function that performs this check for each instance in the grid, by 'picking' the instances that are positioned above, below, left and right of the selected instance.

    I'm wrecking my brains on this, but I can't figure out how to do this best, and how to implement the correct conditions and actions to archieve this behaviour.

    What are the conditions and actions to pick the surrounding instances, in order to change their animation frame?

    Thanks in advance!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hello there,

    I'm new to Construct 2 and I'm struggling on how to 'pick' multiple instances based on the object instance I've selected with a mouse click.

    What I'm trying to do:

    I have made one Sprite object. On the layout, I've put multiple instances of this Sprite object, positioned next to, above, or below eachother.

    When I select an instance, I would like to pick all instances surrounding the current instance I've selected, and perform an action on them (change their Animation Frame - I know how to figure out this part).

    So selecting an instance, it must affect the instances directly above, below, left and right of the instance that I've selected by a mouse click.

    I was hoping to archieve this by 'picking' the instances using a System condition 'Pick Nth instance', but it won't work...

    Can someone help me out please?

    Cheers!

dirkdrie's avatar

dirkdrie

Member since 19 Oct, 2015

None one is following dirkdrie yet!

Trophy Case

  • 9-Year Club
  • Email Verified

Progress

10/44
How to earn trophies