Visualing a finger swipe effect?

0 favourites
  • 4 posts
From the Asset Store
All popular touch mechanics - scrolling, zooming, swiping
  • Hello again,

    I've been trying to replicate the effect of visualizing a swipe across the screen like the ones you might have seen in Cut the Rope and Fruit Ninja:

    <img src="http://i.imgur.com/6MxdQBB.png" border="0">

    While i was trying to figure out how these effects might have been done i came to the conclusion of two different approaches. Either you use vector graphics with a filled/stroked line with a variable sized stroke around it, OR, you use a succession of raster images tightly packed:

    <img src="http://i.imgur.com/Wb1KKzz.png" border="0">

    There are probably other, better, ways to go about this and i was hoping to get some input on the matter. Are any of these ways valid or is it better to try and calculate the distance between each two points and draw a line? If so, how can i get those lines as sloping graphics as you can see in the "blade" shapes of the above games?

    Since Construct 2 doesn't have any support for vectors i decided to try out the raster approach with this example:

    Swipe.capx

    While doing so i got the trail wrap-up effect to work as i wanted but the objects placed in succession are way to far apart as you can see with the large gaps in between them. This got me wondering about the frame rate that C2 can perform since, while touch down, i create a new object and place it at the touch X/Y.

    Anyway, please take a look at the attached file and give me your thoughts about how to approach this. Thanks!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • From another topic (not made by me):

    slash effect

  • Wow! Less code and works much better... kinda disappointed of myself right now. =(

    Thanks for the link though. ^^

  • LittleStain Hey any chance you could upload the capx again?

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