How do I animations in the menu?

1 favourites
  • 4 posts
From the Asset Store
A well commented template with list menus and shops to use in your top-down RPGs or metroidvania games!
  • I have an animation like this, each sprite has an active variable and so I move the button of the active page up 10pixels, is there any way to make it cleaner?

  • Two things that instantly come to mind are families and hierarchy.

    You should group your panels into a single family, so that you can call actions on all panels at once. Do the same for the text.

    When you tap an object of the panels family, you first reset the 10 pixels offset of all panels using the family, and then apply the 10 pixel offset only to the desided panel.

    You can also avoid having to move the text of each panel by using hierarchies. Simply set each text as a child of its panel (with the y position constraint) and then each time you move your panel on the Y axis, the child will move automatically without needing to write additional events.

  • Two things that instantly come to mind are families and hierarchy.

    You should group your panels into a single family, so that you can call actions on all panels at once. Do the same for the text.

    When you tap an object of the panels family, you first reset the 10 pixels offset of all panels using the family, and then apply the 10 pixel offset only to the desided panel.

    You can also avoid having to move the text of each panel by using hierarchies. Simply set each text as a child of its panel (with the y position constraint) and then each time you move your panel on the Y axis, the child will move automatically without needing to write additional events.

    thnx for helping

    I am just learning the construct and im not good all

    I tried to do something about what you said, but it didn't work out, but I wonder if you can make a very short example if it's easy for you. I didn't understand in detail because of my bad English.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • youtube.com/watch

    i found this video very helpful

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