Raziel's Forum Posts

  • Hi,

    it seems like the PlugIn is working not correct in my case.

    I generate an array from 1 to 60.

    So I have 60 levels I want to be in a random order.

    I use a counter (it starts from 1) and call the RandomArray.At(Counter-1) entry to access the first number in the list.

    After a level is completed I add 1 to the counter and the game takes again RandomArray.At(Counter-1). This is the next random placed number on the list from RandomArray and the next level.

    I do generate a logfile and it works besides one problem.

    RandomArray seems to skip one number and generates it twice at the end.

    So for example from 1 to 5 it generates: 3,5,2,4,4

    One is skipped and 4 is twice at the end of the array.

    I could not find any reason for this and would like to ask whether someone had similar issues?

    Thanks

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads