ChesVCF's Recent Forum Activity

  • Niespor

    I PMed you

  • And it will work across all platforms?

    Like, e.g. someone is playing on desktop and someone else on mobiles and they both see the same leaderboard?

    Yes, it will. It works like this: each player can submit its score (with an AJAX call) to a server. All the AJAX POSTs go to the same server and are stored in the same database, no matter if it was posted from a mobile device or from a PC. When you display the leaderboard, you get the metadata from your server with an AJAX GET Request, and the same data is sended to all devices (no matter if desktop or mobile).

    Are you familiar with servers and databases (PHP, SQL, etc.)? If not, don't worry. I didn't even know what a server was when I did this. If you need help, just ask.

    EDIT:

    Sadly, I just tried you hosting and it gave me:

    [quote:njm9oz8i]Public registration was temporarily disabled! If you need an account, please contact us using .

    Hmm... Try to contact them, they usually answer within 24h.

  • Well, I had the same problem some time ago. I downloaded almost every (free) Plugin available, but either they didn't work anymore (like many C2 Plugins, sadly even official ones) or they only worked in a specific platform. I came up with a free solution, which is to code the leaderboard yourself (don't worry if you don't know how to code, I don't know either and it works perfectly). You will need a server (I use a free server from freewebhostingarea.com). Follow this tutorial (it's old, but it still works):

    https://www.scirra.com/tutorials/4839/c ... sql/page-1

    Let me know if you have any questions

  • christ59

    I think we have more or less the same problem. Try this:

    [quote:3pir8mu6]

    On start of Layout -> HTML -> Set HTML to:

    "<div style='height: 100%; width: 100%; text-align: center; background-color: black; color: white; border-radius: 20%; transition: 1s opacity; opacity: 100;'>
      <h1>I'm going to fade out.</h1>
    </div>"[/code:3pir8mu6]
    
    
    and run it on Chrome. Hit [i]F12[/i] and select your HTML Plugin. Go to the [i]div[/i] that is inside the Plugin and change the [i]opacity[/i] from [i]100[/i] to [i]0[/i] (inside the [i]style[/i] attribute). You will see how it fades out.
    
    The problem is, how do you make this transition trigger from Construct 2? Read my post above and let me now if you manage to do it.
  • [

    SOLVED]

    Hi Nandynho!

    Quick question: In your HTML Plugin, I have a div with the style property "width: 100%;". At a given moment, I want to change its width from 100% to 15% with an animation, so I added "transition: width 1s;" to the div's style properties. Now comes my question: how do I actually change the width property, without using the "Set HTML" action? If I use this action, the transition doesn't trigger, as the div is re-created with the initial property "width: 15%;".

    What I want to achieve is the same as hitting F12 in Chrome and manually changing the div's width, which triggers the transition.

    Thank you for your help, keep the good work

    EDIT: I tried with:

    Browser -> Execute Javascript -> "var str = document.getElementById(""myID""); str.outerHTML = str.outerHTML.replace(""width: 100%;"",""width: 15%;"");"[/code:38wldy5s] but the transition doen't trigger either (the width changes from 100% to 15% but without any transition) 
    
    [i]EDIT 2:[/i] Solved. The transition triggers when the class is changed [code:38wldy5s]"document.getElementById(""myID"").className = ""newClass"";"[/code:38wldy5s]
  • I use PhoneGap only to build the apk (which works pretty much the same as in Intel XDK) and I add the Plugins, Icons, Splashes and so on in Intel XDK (just as I did before). It is almost the same procedure as before, but instead of building the apk inside the XDK, you get a zip which you upload to PhoneGap and PhoneGap builds your apk. Give it a try, it works well for me.

  • Yes, this needs to be fixed. I don't understand how Scirra doesn't maintain such an essential Plugin...

    > Should be fixed I can't get Google Play Plugin working even though I have followed all the steps

    >

    It may be time to switch to a better game maker engine, my friend.....

    Which one do you recommend?

  • newt

    Might want to look for a javascript solution.

    I tried with this:

    [quote:31r82g5e]Browser --> Execute Javascript:

    "var str = '"&varWithMyString&"';
    str= str.replace(/<C>[\s\S]*?<\/C>/, '');
    c2_callFunction('myFunction',[str]);"[/code:31r82g5e]
    Function --> On "myFunction" --> Set text to Function.Param(0)
    
    This should work but... it doesn't  <img src="{SMILIES_PATH}/icon_neutral.gif" alt=":|" title="Neutral"> 
    
    That's not just plain ole text, its formatted html on different lines.
    
    It doesn't matter, it doesn't work with plain text either. I've already tried. Anyway, if it works at [url=http://www.regexpal.com/]http://www.regexpal.com/[/url], it should also work in C2...
  • Bump

  • I think I found a solution:

    RegexReplace( String , "<C>[\s\S]*?<\/C>" , "g" , "")[/code:2jwaee1u]
    But I don't understand why this doesn't work in Construct 2, it works perfectly in [url=http://www.regexpal.com/]http://www.regexpal.com/[/url]. Even RegexMatchCount returns 0, is it maybe a C2 bug?
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Bump

  • Ok, it's been three weeks now since looking for a solution on monetizing my app created from C2. Because of being outdated, all the tutorials, plugin and services right now to export and monetize your android app are useless. I don't want to get into details but you know what I mean.

    Just to share what I think could be the ultimate solution to exporting your game and monetizing it, is by using Android Studio. Why, you may ask, it may be bulky to download and install, But the benefit is, you'll have your very own apk builder on your computer, never again rely on free crappy sevices online like cocoon, phonegap builder and intel xdk.

    [...]

    Now, the only left thing to solve is what code to edit on the Android Studio files to integrate admob in your project app to show ads. Hopefully someone here in the blog is able to know how to make this work and share a tutorial. I'm pretty sure so many C2 users will benefit from this information.

    I am in a very similar situation. Official AdMob Plugin gives very very low revenue (with RPMs under 30ct...) and I have read many users claiming that the RPM in a C2 app is between 20-40% of the RPMs in Android Studio apps with the AdMob SDK integrated manually. Also, the AdMob Plugin is very slow loading ads (almost 5 seconds to load an interstitial with perfect internet connection!). I don't know if it is scirra's plugin or the Cordova plugin the one that is performing that poorly.

    Thus, I want to integrate the AdMob SDK myself in Android Studio, but I am not a programmer and do not know how to do it.

    Hopefully someone here in the blog is able to know how to make this work and share a tutorial. I'm pretty sure so many C2 users will benefit from this information.

    +1

ChesVCF's avatar

ChesVCF

Member since 15 Aug, 2016

None one is following ChesVCF yet!

Trophy Case

  • 8-Year Club
  • Email Verified

Progress

9/44
How to earn trophies