How do I move a group of things in unison?

0 favourites
  • 4 posts
From the Asset Store
Move Block
$10 USD
Captivating puzzle game. With challenging gameplay, this game will keep you very engaged.
  • Hi there,

    I have a test I'm trying to do for a game to test performance. My friend is using phaser an HTML5 framework and I thought I'd take a stab at it with C2 because I can't believe it's actually laggy for him. I had to see if C2 would perform the same or (hopefully) better.

    Basically I'm trying something in the vein of don't touch the white tiles.. imagine you have to touch an object to advance all of the objects down the screen. so you hop from object to object..

    something like this

    Subscribe to Construct videos now

    i had trouble finding a video that shows the game modes that stop because everyone is showing their fast games which of course mean no time for pausing.. but the idea is that the units should only advance as a successful touch is made.

    I tried some stuff with families and individual logs.. i was able to build the list of tiles with a loop but now its time to set it up so i can touch the bottom tile and they all move down together and stop where they should.

    my first attempt was just to see them snap down, but the real goal of course would be to use some kind of tweening effect so it looks smooth with each "step"



  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • So are you wanting it to slide each row down only wen you have pressed a black square or just constantly ?

  • yea imagine they all slide down say.. 100 pixels each time you touch a certain one.. if i wanted them to all go down continously i could use a bullet behavior or some other "every tick" type of condition that would be continuous.

    Now that you mention it.. maybe a bullet behavior could achieve this if i could be turned on / off and all bullet objects

    however that still feels like a hack even if that worked. here would be another example... imagine clicking one object.. and dragging that object.. this would be pretty easy either rolling your own or using the drag/drop behavior.. but imagine if there were 10 copies of the same object around it.. not touched.. how could all of them move in unison relative to the position of the drag.. of course in that situation.. pinning an object seems like it might be helpful here, but i'm not sure that's really the most elegant solution..

    my prior example in my initial post is what i'm trying to achieve, but it seems ultimately it's about how to interact with one object and have a bunch of others know to move in relation to that object as well.. be it on the x, y or both axis..

  • The just use the Set Position to Object or Set X or Set Y to WhiteSprite.X + Number or WhiteSprite.Y + Number

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