hyperPad hyperPad Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Login

    Random ads

    Scheduled Pinned Locked Moved Help and Support
    5 Posts 3 Posters 1.2k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • HakanH Offline
      Hakan
      last edited by

      I would like to show ads when player touches next level and try again ui but I dont want it to appear everytime they touch it.I want it to appear once in every 3 or 4 times player touches these uis.

      I tried to use add to score behaviour but it isnt working because evertşme you press restar score gets to 0
      Pls help

      1 Reply Last reply Reply Quote 0
      • MurtazaM Online
        Murtaza Admin
        last edited by

        Hmm, you can try using the random number behaviour. I haven't completely thought this out (or tried it), but something along thee lines should work.

        Generate a random number, then IF that random number is = 3 (or what ever you feel like) launch an ad.

        I feel like you can build on this idea to do what you need.

        Anyone else have another idea? I think @Abel had random ads in his OrbSmash game, maybe he can explain how he did it?

        1 Reply Last reply Reply Quote 0
        • HakanH Offline
          Hakan
          last edited by

          It worked Murtaza thanks a lot

          Jack de WildeJ 1 Reply Last reply Reply Quote 0
          • Jack de WildeJ Offline
            Jack de Wilde @Hakan
            last edited by

            @Hakan Murtaza's method works for randomly showing ads, if you want it to be exactly every X times, you could use a save value to keep track of how many times they have tapped restart, then when that value equals X, set the save value to 0 and show an ad.

            1 Reply Last reply Reply Quote 0
            • HakanH Offline
              Hakan
              last edited by

              I tried it by saving before but it isnt working as once you save a value event if you use delete from file it isnt saving the new value.using random number is the best way thanks jack

              1 Reply Last reply Reply Quote 0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • First post
                Last post