How do I after end all animations move to next layout

0 favourites
  • 5 posts
From the Asset Store
3 pixel charaters with over 8 animations each + animations with a gun
  • Hi! I new here. I research but I don't find answer to my question.

    I make point and click game based on my comic. I don't know how to bring player to next layout, after clicks all animations.

    For example:

    I have first layout from 10. On it, is 2 animations. Player must find it and click on it. When animations end, new layout is load.

    Is there anyone able to help me?

    Sorry for the mistakes, english isn't my native language.

    Carolyn

  • Try Construct 3

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

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

    First you will need to track the animations clicked if you have not done this already i.e. global variable starts at 0, when correct animation is clicked add 1 to variable.

    When global variable is 2 (all animations clicked) > use system go to layout 2. (explained in General section here: https://www.scirra.com/manual/125/system-actions)

  • Thanks. I try it!

  • Hmmm... I try but it doesn't work.

    What am I doing wrong?

    Global number Start = 0

    Global number Animations = 1

    Global number End = 2

    -> System - On start of layout

    • Animation 1 - Stop animation
    • Animation 2 - Stop animation

    -> Mouse - On Left butten Clicked on Animation 1

    • Animation 1 - Start animation from current frame
    • System - Add 1 to End

    -> Mouse - On Left butten Clicked on Animation 2

    • Animation 2 - Start animation from current frame
    • System - Add 1 to End

    -> System - On end of layout

    • System - Set End to 2
    • System - Go to layout "Layout 2"
  • Set Global End to 0 initially.

    On end of layout, remove the set end and change it to an event : if End=2, go to layout 2.

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