[SOLVED] Two questions.

0 favourites
  • 5 posts
From the Asset Store
Footsteps SFX Two contains 450 sounds of steps and jumps on different surfaces.
  • Hi, please can someone help me with these questions?

    1 - I'm not sure the issue of "wait".

    I have a capx in which "every 1 second" increase the frame of a sprite animation and increase the value of an instance variable named "var" in a unit.

    The problem is that the frame is increased more rapidly than the variable.

    The variable increases every second, this guess is correct.

    But the frame animation increases much faster, I do not understand why.

    I have read tutorials and manual but do not quite understand, please, could someone explain to me why every second frame increases faster than the variable "var" ?.

    You can check the value of the variable "var" if running in debug mode

    dl.dropboxusercontent.com/u/60803633/wait.capx

    You need to add h t t p s: // a link.

    -------------------------------------------------- -------------

    2 - The other issue is about "restart layout".

    When I use "restart layout", all belonging to sprites die layout and then automatically re-create?

  • 1. You need to change the speed that the animation is playing for 'Sprite' to '0' from the animation editor. Currently it is set to '5' which is causing the issue.

    2. Unfortunately I am unsure about this one. I know that setting an object to be 'Global' prevents it from being destroyed at the end of a layout.

  • Thanks for the help, the first issue was resolved, I now understand better the relationship there.

    The second remains unclear.

    The question is:

    When I use "restart layout", all sprite objects belonging to that layout are destroyed and started again with the new layout ?.

  • Global

    By default, all instances are destroyed when the layout ends .

    If Global is Yes, none of the instances of this object type will be destroyed ...

    Instances

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Understood thanks!.

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