"Enable Advertisements" in change scene

justinodunnjustinodunn Member, PRO Posts: 226

I would like to ask would advertisements show up everytime that behavior is triggered? Or do they show up randomly like once per every 3 times the behavior is triggered..?

Comments

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772

    Every time, if you want the kind of random function you describe you'd have to build that yourself.

  • justinodunnjustinodunn Member, PRO Posts: 226

    @jamie_c said:
    Every time, if you want the kind of random function you describe you'd have to build that yourself.

    Ah I see, how can I do that?

  • ceemeceeme Member Posts: 0

    i want to know too.

  • DonroncaDonronca Member, PRO Posts: 87

    me too!

  • MantoManto Member Posts: 796
    edited May 2014

    Create an attribute let's call it "randomAttribute".

    Use the code below where you want to change scene:

    Change attribute randomAttribute to random(0,2)

    Rule: if randomAttribute = 0

    change scene - advertisements enabled

    otherwise

    change scene - advertisements disabled

    Edit:

    In the version 0.11.0.13 of GameSalad, you don't need to assign the random value to an attribute. You can use numeric expression and enter the random function there.

  • justinodunnjustinodunn Member, PRO Posts: 226

    do we have to make a loop for that random spawning?

Sign In or Register to comment.