sorbias's Forum Posts

  • So, we have now quite a lot of spammer problems here? Will admin do something to this soon?

  • Thank you also about that another way to set this.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Oh, another question about this. Now the bubbles are masked with the water layer's alpha channel, but they are hardly visible, because water is almost transparent. Can i do anything to that?

  • About the force own texture, I do not know what that means. (And now i don't still know, but it worked.) Thank you again LittleStain! You have helped me a lot with this project!

  • I tried that "source atop" thing, but the particles still appear in places they should not. The particles are at the same layer with water with source atop and they are top of everything. On that layer is not anything else than bubbles and water sprite.

    Water is basically one alpha channeled big sprite that has a water wave effect applied and it is rising with custom movement to up.

    I also tried destination atop, but it did not work either.

    https://www.scirra.com/manual/146/effects

  • That first one does not work, because the water level can be anything.

    About the blend mode. How should I do that? Is there some sort of layer mask thing that I can use for this? I know i can change the blend mode, but should i put the particles over water layer and which blend mode then would be best?

    Now the particles are pinned to character, because i don't wanna them appear from wrong part of character. (only mouth and nose) Can this be problem?) If character is not in water, it has spawn rate 0 and in water it's 2.

    edit: now the bubbles appear at the same layer with water, but i cannot find any good blend mode for it. The problem is that the background color and contrast and everything can change and the water color can change also. So it may be impossible to find some easy "color trick" for this. :/

  • I have done a character that starts spawning bubbles when he is under water.The way i have done it, is another sprite that is pinned to characters mouth and when that sprite is under water (overlapping water), character will start spawning the bubbles.

    Now the problem is that that i want the bubbles not be able to be anywhere else except into the water. (air flying bubbles are not realistic)

    I'll show you a picture:

    So how do i destroy those bubbles when they are not anymore in water?

  • Ok, I did finally do it WITHOUT using lerp at all. If somebody is interested, here is my solution:

    I don't know how stupid or wise my solution is, but it works. Now when my block has been sleeping 15 seconds, it will add every 0.01 second 1 to gray number variable and at the same time it will change grayScale effect parameter to that variable.

    Now i just need to re do this to all of my different sprites that need to have this feature.

  • thank you very very much!

    Here is picture of korbaaach solution that works very well:

  • What are "a", "b" and "c"? My language is not advanced enough that i could understand it very well from that blog. Thants why im asking silly questions here on forum.. :/

    This is what i get:

    Deltatime is the time that you need to get the finished frame. But i don't know what of those a, b or c is dt, so I don't know how should i use that info. Also I don't know about the other values or even the reason why should i use that function for this tween effect.

    I did not found Tween2Effect and LiteTween very useful either. Lack of documentation made them hard to use and i did not get how to made them working in my case. (i did not found my effect from the list of "tween2effect"

    Here is what i tried to do, but it did not work:

    Actually i found a video tutorial for Unity 3d, that made lerp more clear for me than this blog tutorial i saw earlier in C2 site. Here is the Unity tutorial:

    Subscribe to Construct videos now

    So I almost get it, but still. ah..

  • rexrainbow

    I believe it's not about your english. It's just about that i'm not smart enough, or mathematically skilled to very fast understand these advanced features of C2. And it of course makes me want to see thing in practice so it would be easier to follow for person like me. Actually I'm very surprised in positive way that I can see here people like you who wanna create this kind of good tools for community to use. So thank you anyway.

  • I cannot see your example images here. But you can use as big sprites as you want to and scale them down with Construct 2, or replace them later with smaller version. PNG is good format for the pictures, because it has an alpha channel also.

  • Ah, i need a video tutorial about these. English is not my native language and it's really hard to understand about what it is all about in this and how do I made it to work with my event. Actually i could not do anything useful with this or other downloaded "tween" plugins I found because i do not understand the documentation good enough. It's actually problem with all construct 2 documentation. I believe that if somebody would start video series about construct 2, he would be able to get very much views in YouTube, because these blog posts are little hard to follow.

  • Dang, it feels so stupid and unnecessary to use this kind of maths for one very simple task... They really need to develop this program further, so this kind of stuff would be history and everybody would laugh to what we needed to do in past...

    I'm very familiar with programs that uses some key framing techniques (3d-modeling, animation, video editing etc.) , but construct 2 don't know those basic tricks and it makes the game development very much slower in this kind of situations that I know it would've be.

  • Okay, then i have not understood the lerp correctly. I thought that the first value is 0, second value is 100 and 0.5 is the time it takes for the tween between those two values. Now i have no idea what those values actually are.

    How should i change that then?