Kurz's Forum Posts

  • docs.google.com/file/d/0B3iZ60F3QWxTMllKZ2ZnQTgzckU

    Steps to reproduce:

    1. Set "var" variable to 0 or 1 nd notice that that work fine

    2. Set "var" to different value (3) - broke

    Observed result:

    I see same thing as when "var" equal to 0 or 1

    Expected result:

    I want to see smth different )

    Construct 2 version: all C2 versions

        

    Maybe this my misunderstand and ternary operators can't compare "or" actions by the syntax. But maybe not

  • R0J0hound I'm impressive! Didn't know about this syntax.

    Thank you, guys! Again going to learn manual

  • Okey, here the example code. I have a problem with return string in count_change func

    _types = [1, 5, 10, 25, 50]; // coin types

    // this programm count number of ways to exchange money(to example)

    // amount ? sum for exchange

    // n ? number of coins (5 to example )

    function count_change(amount, n) {

        if (amount == 0) {

            return 1;

        } else if (amount < 0 or n == 0) {

            return 0;

        } else {

            return count_change(amount, n - 1) + count_change(amount - type(n), n);          /////////////// How to write THIS string in C2 ??

        }

    }

    // nominal value returns n-type coins

    function type(n) {

        return _types[n - 1];

    }

  • lennaert , My mistake. I have to calculate all numbers in range 10 that it should equal 10.

    vtrix , I'm so blind... going to read manual

  • Good Day!

    I'm trying to solve the brute force algorithm through events and this look like C2 don't support recursion in function object.

    My problem - I have to calculate the sum of all numbers in the range 10 ( like: 1+1+1+3+6 or 5+5 or 6+2+2... ALL numbers)

    Is there someone tried to implement it?

  • Oh! Great! Thank you, radial gradient work !

  • What with radiant gradient ?

    Canvas draw very small sircle with gradient.

  • Link

    Not a bug. This is a Sprite's object specific. You must load to different frames. And you don't need "for each" action

  • currently you can use ONE tiled object but different instanses can use different graphic )))

    like here

    I wonder that peoples didn't know about this

    And this NOT kill the performance. I test a lot this feature with lot of sprite objects

  • Ashley I will make animation in particle object with this feature (I already can animate tiled object and this very helpful)

    like here

  • bump

  • Thank you! Great job!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Which folder for addon ? I miss this

  • What I know from C++ that static variables still exist after you leave the cycle, to example. But just local variables are destroyed.

  • Make them static