Mypka_Max's Recent Forum Activity

  • Could be used if you are using a lot of WebGL effects to palette swap (replace color... also, anyone remember Super Mario Bros (1985) and how the underground levels had the same tileset as the ground levels, but blue?)...

    I really don't want to spend hours just to replicate the effect to give three layers one palette.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • QuaziGNRLnose , I modified the q3dsprite runtime to fix the flipping/mirroring.

    I added the following code at line 528

    > //make sure flip and mirror work
    if(this.sprite.scale.x<0)this.sprite.material.map.offset.x = 1, this.sprite.material.map.repeat.x = -1;
    else this.sprite.material.map.offset.x = 0, this.sprite.material.map.repeat.x = 1;
    if(this.sprite.scale.y<0)this.sprite.material.map.offset.y = 1, this.sprite.material.map.repeat.y = -1;
    else this.sprite.material.map.offset.y = 0, this.sprite.material.map.repeat.y = 1;
    [/code:vb2c4wpv]
    I also added these in the setMirrored and setFlipped Acts:
    [code:vb2c4wpv]
    		this.mat.map.offset.x = (m === 0 ? 1 : 0);
    		this.mat.map.repeat.x = (m === 0 ? -1 : 1);[/code:vb2c4wpv]
    [code:vb2c4wpv]
    		this.mat.map.offset.y = (f === 0 ? 1 : 0);
    		this.mat.map.repeat.y = (f === 0 ? -1 : 1);[/code:vb2c4wpv]

    I tried adding this piece of code into "exporters/html/plugins/Q3D Sprite/runtime.js", but when I launched the preview, the game just kept crashing and saying there's an error at line 534 col 4, unless I change it back to how it was originally? How do I modify the plugin without breaking it?

Mypka_Max's avatar

Mypka_Max

Member since 19 Jun, 2014

None one is following Mypka_Max yet!

Trophy Case

  • 10-Year Club
  • Email Verified

Progress

11/44
How to earn trophies