plikrus's Forum Posts

  • If you want to use a different input method for mouse and touch i suggest making a mouse group of events and a touch group of events. If on touchscreen disable mouse-group and if mouse is available disable touch-group.

    Would you have a sample .capx on this?

  • Hi, this works for me:

    - Create a html file like so..

    <!DOCTYPE html><!--HTML5 doctype-->
    <html><head>
    <head>
    <title>Google Adsense</title>
    <meta http-equiv="Content-type" content="text/html; charset=utf-8"> 
    </head>
    <body>
    
    <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
     <!-- Mobile Banner -->
     <ins class="adsbygoogle"
    	 style="display:inline-block;width:320px;height:50px"
    	 data-ad-client="ca-pub-6887935823876135"
    	 data-ad-slot="8629732603"></ins>
     <script>
      (adsbygoogle = window.adsbygoogle || []).push({});
     </script>
    
    </body>
    </html>
    [/code:2hqikz1z]
    
    - Change the bit in the middle with the code from google adsense: [url=http://prntscr.com/35sj11]http://prntscr.com/35sj11[/url]
    - Upload the html file to a server
    - In construct 2, link the html file to the iframe like this: [url=http://prntscr.com/35shhj]http://prntscr.com/35shhj[/url]
    - Laugh <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy">
    

    The only problem I see with this is that it is an adsense violation to place ads in an iframe in this manner.

    support.google(DOT)com/adsense/answer/1346295

  • Hello, my name is Ed, I have been playing with Construct for about 1 1/2 years. Before this I have programmed in c++, C#, java, php, asp, and a few others. Mainly I used to make a living building websites. For 7 years I own a computer sale and service shop in Nebraska.

    Currently I have a small team and we are working on our first game release in construct, everything is original including the music and sound. We have been working on this for many months now and hope people will enjoy it.

    Our goal is not to have the next "big" thing but is to have fun.

    Thanks for letting me share.

    Ed

  • So how do you put the adsense into poses iframe?

  • Have no idea if this will help anyone else but I have found my issue:

    Global yes/no -- NO

  • Have no idea if this will help anyone else but I've found my issue:

    Global yes/no -- NO

  • Well I have no idea if this will help anyone else but I've found my issue:

    Global yes/no --- NO

  • This tutorial is the best one for beginner: https://www.scirra.com/tutorials/448/ar ... high-score

  • Actually I am looking for a solution to this (see attached .capx)

    click red square to go to game layout

    left or right mouse to move, hit yellow bar and return to start layout

    Problem is I have used reset/destroy/reload but you will notice that "score" will not show on second enter to game layout.

    I have a solution in mind and the is to drop the start/menu layout and just reload but I would rather not if???

    Thanks for any help

    Ed

  • Hey, not to but in on the tread but did you guys ever figure this thing out?

  • I have tried both, tested in chrome/ie/firefox. score text will not show second enter. The only thing I have found that will work is browser/reload

  • Tried it still no joy!

  • Here is a demo of my issue:

  • I have tried to figure this out but I am just plain stuck. I made a demo of my issue I just do not understand what I am missing. Any help I would be very greatful.

    Simple 2 laypout

    #1 Start

    #2 Game

    click red sprite to go to game

    used simple mouse clicks left and right to move, when you hit the yellow sprite you go back to the start layout.

    Simple scoring: each move left or right is equal to 1

    The issue I can not figure out is that when you go back to the start layout and then click again to go to the game layout the score is not there. I do not wish for the score to continue I just want it to start over.

    I have tried reset/reload/destroy I understand this is a simple newbie mistake but could someone please help???

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • but this is how it looks first, and then after reenter