ChesVCF's Forum Posts

  • Kyatric I think you are the "effect's master", could you please let me know what parameter is necessary to change in order to change the Vignette's colour? Thank you in advance

  • grigrizljac

    Wow that was extremely helpful. Thank you for your reply I have no problem with it as I want to export to Android, but I will try with NW.js or disabling this warning in Chrome while I am previewing my app.

  • Hi, I want to get a webpage's HTML.

    I tried with AJAX Request URL (webpage's URL) and then get the page's HTML from AJAX.LastData. My problem is it does not always work, for example, it does work with

    AJAX Request: "http://www.nationalgeographic.com/"[/code:2oiybff4] but it does not work with [code:2oiybff4]AJAX Request: "http://www.scirra.com/"[/code:2oiybff4] Anyone got a clue?
  • Hi I'm struggling with this Plugin but it's difficult as the URL to the example capx is broken

    How can I resize an image in order to change its resolution? For example: I choose a 128x128 image with the FileChooser, use this Plugin to make it 32x32 and then load this image to a sprite. It is important because I want to encode images into base64 and I need the URLs to be as short as possible (and I don't really care about resolution).

    Any clue?

  • Hi Pode

    I love this Plugin, but it gives me too long strings that I can't upload to my server's database Would it be possible to implement something that compresses the images? I tried adding the effect "Pixellate" to the sprite I wanted to retrieve as a base64 string, but the string was the same as without the effect. Maybe it could be possible that the behaviour gives you the sprite with effects as base64 string, in order to let you control the size of the image.

  • Ok thank you Ashley

    I think I will use the Vignette effect but I want the vignette colour to be white. I guess I only have to change a paramater from the effect's code, but I've trying for an hour and a half and I really haven't got any clue on how to change it. This is the effect's code:

    varying mediump vec2 vTex;
    uniform lowp sampler2D samplerFront;
    
    uniform mediump float vignetteStart;
    uniform mediump float vignetteEnd;
    
    void main(void)
    {	
    	lowp vec4 front = texture2D(samplerFront, vTex);
    	lowp float a = front.a;
    	
    	if (a != 0.0)
    		front.rgb /= a;
    	
        lowp float d = distance(vTex, vec2(0.5, 0.5));
        front.rgb *= smoothstep(vignetteEnd, vignetteStart, d);
    	front.rgb *= a;
    	
        gl_FragColor = front;
    }
    [/code:1j59hu63] which is based on [url=https://github.com/BradLarson/GPUImage/blob/master/framework/Source/GPUImageVignetteFilter.m]https://github.com/BradLarson/GPUImage/ ... teFilter.m[/url] and the author gives this hint[quote:1j59hu63]vignetteColor: The color to use for the vignette (GPUVector3), with a default of black
  • Hi, I want to create a rounded image like this: https://www.w3schools.com/css/css3_images.asp and I was wondering how to add CSS to a Sprite in C2.

    Thank you <img src="{SMILIES_PATH}/icon_mrgreen.gif" alt=":mrgreen:" title="Mr. Green">

  • gumshoe2029 yeah the problem is you don't know the file path, the only thing that relates to the image is a blob URL that is temporary

  • Hi, when you choose a file you are given a blob URL that is only temporary. It doesn't relate to the file nor to it's path. When you close the browser, this URL becomes obsolete and you can't reload the file you chose before using this URL.

    So, how can you "remember" the file you chose? Is there any way to store it (I know you can store text files as strings, but what happens if it is an image)?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi, after trying out the chat template with the Multiplayer Plugin I decided I wanted to look for some alternatives. And I thought, if you can create (for example) a login system with a database in a server, some PHP and the AJAX object, you would probably also be able to make a chat like this.

    If this is possible, I assume it will work muuch better than a chat with the Multiplayer Plugin (well, this isn't really difficult ). And here comes my question: how would you do this?

    I had imagined you would have to create a database with three columns (ID of the message, Username and message) and then every single message would become a row in the database (after sending the message to the database via AJAX). But this doesn't seem very clean to me: if you have e.g. 4k messages, would this mean your database would have also 4k rows?

    Can you exchange this huge amount of data with the AJAX object (POST/GET)?

    Else, how can you make the capx to automatically "download" a new message whenever another user sends a message (eventually whenever a new row is added to the database)?

    Thank you for your help

  • Yes, I know. But as every object had many instances, I had to use an Array.

    Anyway, now it's solved, thank you Maukka

  • Hi!

    I have a family with many objects with four family instance variables. The first one (string) is the type of this object (for example "Enemy1", "Enemy2", etc.) and the other ones are values (for example "Health","Attack", etc.).

    What I want is to sum all these number instance variables for each type of object (for example, health of all Enemy1s toghether, and then attack of all Enemy2s toghether, etc.).

  • Thank you rexrainbow

  • Hi!

    What I want to do is to check if my array's Y values at an X are all together =0. It would be like a summation of all the Y values at an X.

    Is there any way to do this? Thank you for your help! 😀

  • rexrainbow

    It seems that my youtube player plugin should add a feature to stop playing when suspended, like official audio plugin?

    I think so. Maybe thread in stackoverflow might help? Please let me know if you plan to add this feature, otherwise I will delete this Plugin from my project and upload the app to the Play Store without YT videos