ChesVCF's Forum Posts

  • You could even wait just 0 seconds [quote:20tpyi4h]One more trick: "Wait 0 seconds" postpones the following actions until the end of the event sheet.

    This way you don't even need to really "Wait", because the action is executed in the same tick, but it's the last action that is executed. Anyway, you can look it up here.

  • You do not have permission to view this post

  • You do not have permission to view this post

  • Google Play doesn't use client secret any more. I (and many other users) think the Google Play Plugin is obsolote, the documentation was written some time ago and it doesn't work anymore. I don't understand either how such an essential (and advertised) feature isn't maintained. Maybe the only solution is to use cranberrygame's cordova plugins (which cost 9,99€...).

  • I'm not sure if I understood your question, but if you want to disable mouse events, put them inside a group and toggle that group disabled whenever you need it.

  • BUG REPORT:

    I found a bug that makes the whole Plugin behave inadequately. This happens when you alter anything in the parent div's style properties. I found it out when I tried to remove the "transform: rotate(0deg);" style setting (with the Browser Execute Javascript action), beacuse I have a <button> with a fixed position (I don't want this button to scroll with all the other things) and otherwise it behaved as if it had an absolute position.

    You can see the bug in this capx.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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