Jase00's Recent Forum Activity

  • Wow, thank you so much Animmaniac ! This is extremely helpful and has helped me understand a bit more about writing shaders

    I didn't expect that the effect is applied BEFORE rotations (as in, apply this shader, then change the sprite's angle, the shader rotates too, which is what I wanted ) , so that's awesome!

    There's only 1 problem with the shader (which I'm struggling to understand why it's happening), and that is that it's not affecting certain colours correctly (Black would crop correctly, white is still visible). I reckon I've probably mucked up with the brackets somehow in the entirety of the shader or something.

    Here's a copypasta of the entire shader code, just incase I've mucked up something simple:

    // Pixel shader input structure
    varying mediump vec2 vTex;
    uniform lowp sampler2D samplerFront;
    uniform mediump float pixelWidth;
    uniform mediump float pixelHeight;
    uniform mediump float fL;
    uniform mediump float fR;
    uniform mediump float fT;
    uniform mediump float fB;
    uniform mediump float fA;
    
    void main(void)
    {
    lowp vec4 front = texture2D(samplerFront, vTex);
    
    if( vTex.x<fL || vTex.x>1.0-fR || vTex.y<fT || vTex.y>1.0-fB )
    { front.a *= fA; }
    
    gl_FragColor = front;
    }
    [/code:hec086l3]
    
    And here is a screenshot of the problem.
    [img="https://dl.dropboxusercontent.com/u/7765312/C2/Croppy/croppypy.png"]
    
    I'll poke around with it but I'm not sure if it's not an obvious fix
  • AnD4D , With Arima's .capx, the collision check is getting called every 1 second, so I think the "Put collisions at top" thing wouldn't apply there as it's doing a collision check for 1 tick every second (whilst if you wanted to constantly detect whether something is overlapping or not, then collision cells would lessen the load for having 60 collision checks per tick)

  • digitalsoapbox , thanks! I haven't checked that out actually, I will give it a look! Though I still hope to figure out my situation, would be handy to gain some knowledge on Shader writing as well as this would directly fit what I need in my project at the moment

    Pode , Hey thanks for checking it out! But,...well, it's broken haha. I uploaded it fully knowing it's not working as expected, but it's an attempt nonetheless. If you enter any value into any of the parameters, it will not crop at all, it will just set the transparency to whatever Alpha value is set.

    If you set "Left" to 0, the sprite will just look normal.

    Set "Left" to 1 and the entire sprite will go to whatever Alpha is specified.

    Set "Left" to 0.09, and the outer edge of the sprite will turn into the Alpha specified.

    So in conclusion, it's broken...

    I figured doing the angle version of this shader would require Trig, and I think I know the math to do it, I just don't understand at all how to implement it in shader language at all I figured if I could get this "Left Right Top Bottom" version figured out, I would have a better chance at the Angle version.

    Thanks for response! I appreciate it greatly!

  • Bumpity bump.

    Any sort of advice would be greatly appreciated! I have read the documentation supplied from Scirra but I'm having a hard time for something that sort of looks like it'd be extremely easy to figure out if one had prior knowledge about shader writing.

  • This plugin is awesome!

    I had one little problem with it but it was my own fault for not trying the ultimate solution earlier, but I was trying to paste an object that had it's collisions disabled, and I spent hours working on the events in many different ways, and made a separate project to test the Paster thinking it wasn't working for me (worked fine on the other project of course), but yes, collisions disabled caught me by surprise. No biggie at all though, didn't matter if they were disabled or not in my case!

    Using this plugin, I've managed to improve performance x10! I have a cloud generator that makes a few blurred circles in a little area per cloud, so I would have around 120 Cloud sprites, each individually scrolling sideways in the background, which killed performance a bit when it's alongside the rest of the game, but now this plugin groups it all together and only has to scroll 20 Pasters.

    Much appreciated r0j0!

  • The results have been announced!

    https://developer.tizen.org/contests/ti ... -challenge

  • I think I know what you're after. You want it like "Hold click onto the button to keep the LBumper and RBumper up, then letting go would reset their angle"? If so, here's an explaination.

    Your click events are triggers ("On Click"), this means that those events will run only once, then it gets to Event 3, which resets the angles back to 0.

    Try changing Events 1 and 2 from "On left click" to two conditions: "Left click is down" and "Is mouse overlapping spr_LBumperCont". Then remove the "Every 0.25" condition, then move Event 3 above Event 1, so that the order will be correct (It will read if it should reset the Bumpers' angles, THEN it will detect if it is being clicked, and if it is, then reset the angles)

    Hope I've understood you and have been of help! Welcome to the community!

  • It's likely as long as the device has WebRTC support, which I believe Chrome for Android does have

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • This is hard to analyse, like for instance, why is there a b1 and b2 pot, what's the difference? Maybe if you upload a capx, we could help more!

    But from what I can gather. When you reposition the plant pot back up to the window, you're making it invisible, which hides the fact that you're plant pot is naturally falling because of the physics behaviour. So when the "Falling" events are triggered, it's not what you expected.

    We could definitely help more with a .capx!

  • Ok cool!

    You're Retry button is still there even when it is invisible.

    On Event 10, add another condition [Sprite2 "Is Visible"].

  • There's a 3rd party plugin called "Sprite Button", that's preventing me from opening your .capx

  • This happened to me a few times too, both Pause and Step were greyed out and I couldn't click them, but it's not happening consistently as far as I know, and I usually close off the preview and preview it again if this happens and things go back to normal.

Jase00's avatar

Jase00

Member since 5 Jan, 2012

Twitter
Jase00 has 11 followers

Trophy Case

  • 12-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • Steady Visitor Visited Construct.net 30 days in a row
  • Enduring Visitor Visited Construct.net 90 days in a row
  • Unrelenting Visitor Visited Construct.net 180 days in a row
  • Continuous Visitor Visited Construct.net 365 days in a row
  • RTFM Read the fabulous manual
  • x15
    Quick Draw First 5 people to up-vote a new Construct 3 release
  • x7
    Lightning Draw First person to up-vote a new Construct 3 release
  • x7
    Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

26/44
How to earn trophies