Lens
Member
Good morning/afternoon/evening! I'm making a tile-matching game and need pieces to fall once a said line gets completed (removed).
Thus, I tried making a
once it turns true, the object gets their ".y += 30". The problem is, instead of only the objects with higher position to move down (gaining y), all objects move down; even the ones beneath the specific one.
How can I make it so that just the ones above go down?
Thus, I tried making a
if object.y < self.y
with(object) triggeringvariable = true;
once it turns true, the object gets their ".y += 30". The problem is, instead of only the objects with higher position to move down (gaining y), all objects move down; even the ones beneath the specific one.
How can I make it so that just the ones above go down?