frcol's Recent Forum Activity

  • A changed the Textbox placeholder color using a external css:

    *::-webkit-input-placeholder {
        color: #dcdcdc;
    }
    *:-moz-placeholder {
        /* FF 4-18 */
        color: #dcdcdc;
    }
    *::-moz-placeholder {
        /* FF 19+ */
        color: #dcdcdc;
    }
    *:-ms-input-placeholder {
        /* IE 10+ */
        color: #dcdcdc;
    }[/code:1r3780mv]
    It works for all types of  Textbox but not for  "Number".
    Any idea how to solve it?
  • hi wizdigitech,

    are you just setting in the instance Font property or using "set web font"?

  • My son and my daughter spent a lot of time playing it.

    Congratulations!

    I liked it too.

  • If it´s for a server that you owne, you could make a PHP file that responds an "ok".

    Construct side, you starts a timer when request it. Receiving de "ok", you have the "ping". It´s a "console" ping, but it´s the time that your request took to receive the "ok".

  • You have a family of enemies.

    You can set any variable that you want in it.

    healthAB

    healthCD

    When collide, you say wich variable you´ll subtract.

  • Hi WilliamAnderson, if I understood, the collision trigger already pick bouth instances (bullet and enemy), you just need to put Enemies (familly) health subtract 1 as a action of the trigger (condition). It´ll take out 1 from the enemy that collided with the bullet.

    The variable health must be in the family, not the instance.

  • Try Construct 3

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

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

    I´ll update here.

  • [quote:h2netk0l]"The main thing is to always use dot syntax (Object.property) rather than bracket syntax (Object["property"]) in your own code. All properties using dot syntax are changed by Closure Compiler, but none of the properties in bracket syntax are changed."

    https://www.scirra.com/manual/22/runtime-overview

    Is it telling to always use dot syntax or I misundestood??

    I remember that i´ve read somewhere about it (the reason I´m using dot).

    The same time that it tells to use just dot syntax, the next sentence tells that dot syntax is changed when minified but bracket syntax not.

  • Yep!

    Thanks rexrainbow!

  • Nope.

    cr.logexport(request["responseText"]);
    cr.logexport(self.dataJson);
    self.dataJson = JSON["parse"](request["responseText"]);
    cr.logexport(self.dataJson.logradouro);[/code:3kq8rdks]
    first line returns
    
    [code:3kq8rdks]{
      "cep": "18061-000",
      "logradouro": "Rua Humberto de Campos",
      "complemento": "",
      "bairro": "Jardim Zulmira",
      "localidade": "Sorocaba",
      "uf": "SP",
      "ibge": "3552205",
      "gia": "6695"
    }[/code:3kq8rdks]
    Second line returns "Object {}"
    Fourty line returns "undefined"
    
    Works in preview, but not when exported for HTML5
  • Thanks R0J0hound, just perfect!

    The problem was the nested function.

    When "this" is inside a nested expression function (example called "A"), that is inside the "instanceProto" function, Calling the "A" function will get you the global object, in Strict mode, undefined (that was the trick part). That´s the reason for defining the "self"...you are right.

  • rexrainbow

    I implemented 2 new properties, 1 Condition and 1 expression:

    properties:

    • Show Info: informations that appears on top of the video
    • Dissable keyboard: enable/disable keyboard to play/pause/forward etc

    condition:

    • onError: If the video return any error (2, 5, 101, 150), the plugin is triggering it now.

    expression:

    • ErrorMessage: brings the error number (works just using the ID property in edit mode, if loads the video by "load video" on runtime, it returns 150 most time).

    Demo: http://fabiocolombini.comli.com/youtube/

    Download: http://fabiocolombini.comli.com/youtubePlugin/youtube.rar

    If you wanna take a look at it, I commented all my modifications with "frcol".

    I really hope you don´t care about it. I just needed these functionallities and implemented. So, if I have it working, the best thing to do is share it. And I think it´s not fair to rename it and put in another place for downlaod, because all the credits is for you. If somehow you don´t like it, just tell me what to do.

    I REALLY aprecciate your work and wanna humbly help.

    MaorKeshet

    1- I think it´s not possible because it´s a DOM element <iframe>

    2- I think it´s working.

    3- The click on the video, i think it´s not possible. I didn´t find anything about it in Youtube API.

frcol's avatar

frcol

Member since 10 Dec, 2014

None one is following frcol yet!

Connect with frcol

Trophy Case

  • 10-Year Club
  • RTFM Read the fabulous manual
  • Email Verified

Progress

12/44
How to earn trophies