Using loopindex with time events

0 favourites
  • 3 posts
From the Asset Store
An educational game for Times Table. An easy to use template for developers to build larger games
  • In C2 im actively using loopindex with wait feature

    For example

    repeat 5 times - wait 0.1*loopindex

    move object by 10*loopindex pixels

    that makes object moving on 10 pixels at start and than increase its speed till 50px at the loopindex 5

    For now, in C3 it dosnt work

    with the above code, it always will give 50 px, because even after first wait 0.1 sec loopindex will equal to 5(last number of loop)

    Please advice how to do something the same in C3

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • A way to implement this.

    Made with beta r255

  • A way to implement this.

    Made with beta r255

    Thank you Kyatric

    the problem is, I do not want to use additional variables, arrays, or something.

    I m making a big project with a lot of elements, and it is very hard to use arrays for them. and do not want to use additional variables as long as I already have thousands of them and as I know, it has a big impact on the performance

    Resolved the issue with variable

    "damage taken"

    but will be much better if it was possible to do as described in the first post

    here is the example in the game that I made in C2

    (pieces glowing effect at the level end) youtube.com/watch

    I'm just wondering, isn't it possible to make some action, that will repeats with some delay

    Like, repeat x times with y delay. I'm sure it will be useful in many cases

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