Something I came up with while experimenting with a game prototype:
Attached is a very simple Gideros project with sample code. Just run it and click or tap to counter act the force of gravity to keep the block on screen. The project is landscape oriented so excuse the portrait video
Just another example of the power of Gideros!
Comments
nice effect!
www.tntengine.com
Btw is it possible to make the tail's width smaller at the end?
https://play.google.com/store/apps/developer?id=Into-It+Games
http://appstore.com/LidiaMaximova
This effect can also be used for slashing effect like fruit ninja etc. Really good!
The class now accepts a table with key properties, a new one of which is scaleFactor and should be a number 0 - 1 (Other numbers will work but might give weird results). This will basically dictate that every time you add a new point, the width of the line at all existing points should be multiplied by a certain amount.
The main file now 'requires' demo1 (Original demo from video) or demo2 in which you can sort of "paint" a trail and looks kind of like the Fruit Ninja thing you were talking about. However you will notice that if you're swipe sharply changes direction, the mesh gets distorted in the corners. This is due to overlapping and is fixable but the math and code behind it wouldn't be trivial. Basically: Meshes are awesome and can help you make great effects even without OpenGL ES 2.0
Likes: oleg
https://play.google.com/store/apps/developer?id=Into-It+Games
http://appstore.com/LidiaMaximova