[REQUEST] Draw Trails

0 favourites
From the Asset Store
You need this package if you want to program a Street Fighter or battle game.
  • A plugin similar to this one : https://marketplace.yoyogames.com/assets/212/draw-trail

    I would definitely buy it.

  • You could do that with Paster plug.

  • newt I was thinking it should be possible with canvas plugin but I couldn't figure out. How can we do it with paster plugin?

    Also is it possible to make a behavior with the SDK that you can use it with a sprite and it will have a trail? Or do you need GLSL to make it?

    I know, It's just an effect but I really obsessed with it lol. And I know there are lots of examples on the forum that teaches how you can fake it but I want a smooth trail without n numbers of sprites.

  • Paster can do quad deformations, which is only a partial solution as it would require several instances to pull it off. Those extra instances would inturn bring performance down a bit. It's basically like clotheslining corners of a texture together. Also I don't think Paster can do texture tiling, another drawback.

    It is possible to do a full blown trail as either a plug or an fx, but only in webgl.

  • Download

    it lacks some comments since i took it from an old capx see if till someone develops a plugin to do it better if that helps u in anyway

  • Trail with Canvas plugin

  • Another smooth example

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • nope <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy">

    dellong nice examples thanks.

    Links:

    https://www.dropbox.com/s/ghl65b020yw8w ... .capx?dl=0

    https://www.dropbox.com/s/o2ss6diml0azs ... 20cat.capx

  • thats some nice capx but its to heavy for using it in a game... my pc went 70% usage on preview ... which is nothing i wold use inside a game that has another 1000 elements and events to worry about... but its good that works but not sure if is CPU utilizable for what u want as performance even if u make it standalone app. ul cut half of ur players maybe more.

  • Canvas plugin is affected by memory leak which causes bad performance, r0j0hound is aware of this but there no way to fix this, there another solution to use paster which doesn't affect memory leak.

  • The canvas plugin is causing the cpu usage when webgl is on. Basically it has to copy the canvas to a texture every tick. If you disable webgl it's fast or alternately you could use the paster object instead.

    dellong

    Nice examples. I didn't think of using the circle for the rainbow, but it looks effective. The only issue you'll run into by fading the canvas like that is the images never fade away completely do to rounding, unfortunately there's nothing that could be changed to make it better. It's more noticeable on certain monitors or if you look at the screen from an angle. Still it's a good effect that I'll use again.

    bilgekaan

    If you're interested in existing solutions you can look here for one using sprites:

    viewtopic.php?f=147&t=164029&p=992930&hilit=trail#p992930

    It can be tuned to not use as many objects if performance becomes an issue.

    For trails with textures the paster object would need to be used.

    newt

    Paster's draw textured quad action handles this well, notion special needed to be done for repeating textures.

    /examples31/draw_path_paster.capx

    https://www.dropbox.com/s/umtu776abnzc0 ... .capx?dl=1

  • The canvas plugin is causing the cpu usage when webgl is on. Basically it has to copy the canvas to a texture every tick. If you disable webgl it's fast or alternately you could use the paster object instead.....

    i see ... i did tested the paster object runs blazing fast compared to the canvas i always avoided it ..however they seem to have the same issue all of them doing the same thing even if u do it by spawning normal sprites in the 2d canvas or in the canvas plugin or even in paster ... they all create sprites ... none draws ... which is something that i think is really needed for c2 ... paster does have that option to draw shapes based on coordinates however i need to test it more to understand it ... thanks again for reply ur plugins are awesome ..

    i wonder if someone could strip down paster from all other functions and keep only the drawing to coordinates or spline ? part but then it will need a fade out on them or some behavior to create the fadeout effect of the trails ... if its used for that purposed. but as newt said ... is not that simple

  • R0J0hound For some reason I was thinking more along the lines of multiple instances replicating how the CC trail object worked, but yeah yours works.

    It is called Paster after all I guess.

  • R0J0hound Paster plugin example is awesome, thank you!

    I didn't use paster before. How much would it effect the performance?

    i wonder if someone could strip down paster from all other functions and keep only the drawing to coordinates or spline ? part but then it will need a fade out on them or some behavior to create the fadeout effect of the trails ... if its used for that purposed. but as newt said ... is not that simple

    Yeah it would be really nice.

  • [quote:2djp2t0v]I didn't use paster before. How much would it effect the performance?

    It's just drawing to a texture instead of the screen so it would be equivalent to drawing lots of sprites, or in the case of the example, 30.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)