eli0s's Recent Forum Activity

  • +1

    I think that if the sine behavior had some conditions that compared the progress, it would add a lot to it's functionality

    In the meantime, perhaps the LiteTween and/or the EaseTween behaviors might prove even more useful for the thing that you want to do.

    https://www.scirra.com/forum/behavior-litetween_t70700?&hilit=EaseTween

  • So unless another creative solution is found the fastest way will probably be to use fading sprites.

    R0J0hound can you please show as a practical example with fading sprites..? I tried to use the fade behavior or setting the sprite into an empty frame after a few seconds, but the result is that the main sprite (the one that should leave the trail) just disappears.

  • Unfortunately I can confirm that... R0J0hound is there a way around the "number rounding when the colors blend" (what ever this thing is ) ? I find it strange that no one has mentioned this before..!

    -EDIT-

    I thing the problem is that the "eraser" object (or the fill canvas with color) never actually adds up to be fully opaque, in other words it never reach 100% of its color value.

    See the following example:

    http://www.eli0s.com/Tests/CanvasTests/CanvasNotReachingBlack.capx

    I use two canvas objects, on the left one, every tick I fill the canvas with black at 0.01 alpha and on the right I paste a black sprite object with 1% opacity. In theory, in both cases after 100 clicks (~1.4 seconds) the canvas objects should be completely covered with black. But the results are different. They are not the same, the paste sprite method renders darker results than the fill canvas, but never the less it's far from being fully opaque.

  • Damn, you are right and I can't find any way around it...

  • Well, you can use the invisible rectangles' dimensions and position to directly control the spawning area. This way even if you move around the rectangle, or change its size, the changes will reflect in the spawning area.

    http://www.eli0s.com/Tests/invisible_rectangle.capx

  • Well, that doesn't seem to be the case. I am not sure that I get what cause the problem, but R0J0hound provided a solution.

    https://www.scirra.com/forum/plugin-canvas_t64239?start=290

    Just set the Blending of the eraser to Additive instead of Destination Out.

    Here are side to side comparisons: http://www.eli0s.com/Tests/CanvasTests/CanvasAdditiveBlend.capx

  • R0J0hound

    Thank you very much, that did the trick, now the trail fades completely, even if the "eraser" sprite has a very low opacity value, thus producing long, beautiful trails

    I took the liberty and arranged your example in a way that displays side to side comparison of both methods and I have to say that the results are very ...transparent

    http://www.eli0s.com/Tests/CanvasTests/CanvasAdditiveBlend.capx

    Thank you again

    Elias

  • The thing is that the opacity of the eraser affects the time of the fade out. The greater the value the fastest it fades but with better results.

    Ideally this shouldn't happen, even with 0.01 opacity, eventually it should have fade out completely.

    I posted this as a question to R0J0hound in the Canvas Plugin topic, so hopefully he will confirm it and give some advice.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I goes completely transparent for me on my computer. I don't know why it wouldn't... Does it fade at all?

    Yes, it does fade but not completely, a small trace is left behind. See the photos below.

    This is a screen capture from your example:

    On my monitor the trace is faint but clearly visible.

    Here I manipulated the brightness and contrast in Photoshop to enhance it. If the trail was 0% opaque in the first place, it shouldn't be visible at all, even with the brightness and contrast added, right?

  • You're welcome!

  • That's great gamepopper, great gob. The color change if on sight that Ragevortex suggests will be awesome too

  • I think that the search feature was functioning better before the forum was updated. It felt like it had a logic in a way that tried to give results that have the same or similar meaning with the words that where given as search terms. It even suggested words if they where misspelled. Now it feels like it just throws every topic, post and reply that matches with the search terms, even if the words are being used in a different context with in the topic, giving over-saturating results.

    I don't mean to nag though, I am very happy that the logout issue has being fixed, in the past few days I was never forced to to login again.

eli0s's avatar

eli0s

Member since 24 Apr, 2013

None one is following eli0s yet!

Trophy Case

  • 11-Year Club
  • Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,000 readers

Progress

13/44
How to earn trophies