Issue with "Start of layout" and "Set Y" for a Family of objects

0 favourites
  • 2 posts
From the Asset Store
A collection of various zombie characters sprites for creating a 2D platformer or sidescroller game
  • I have a function that is called 10 times at the start of the layout.

    The function is supposed to create a line of 10 blocks on the top line after it pushed down all existing blocks down by 1 line. The problem is that when triggered once it does that correctly and the Set Y Coordinate works normally so it goes down by one line correctly but when I call the function in any loop it doesn't work anymore and the Set Y is just skipped for some reason and all the new lines are on top of each other.

    I've researched workarounds and fixes :

    I've found a workaround but it creates 1 line per frame

    Setting a position inside the function works if the position is only chnaged for

    "Pick all" the blocks doesn't work

    I'm going to try to get all the blocks by UID and change their position one by one using an other function instead of using the family.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'm going to try to get all the blocks by UID and change their position one by one using an other function instead of using the family.

    It turns out the last test was the right one. Calling each cube works so I guess my issue is fixed.

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