Cape simulation
Monkey Forums/Monkey Code/Cape simulation
| ||
Just had this crazy idea tonight, to do a basic 2D cape simulation... found nothing on Google, so this is what I came up with: the game is a bunch of segments, as as the root segment moves, all child segments are updated accordingly. It kinda of work... but I think I'm missing something, the movement isn't fluid enough. Take a look at what I coded, and if someone can suggest something (besides using a physics engine :P) I'm all ears :) |
| ||
The effect isn't bad, it might look cool on a 32x32 sprite :) I think the cape settles too fast. Also, apart from the music files pre-processor you don't need to wrap the #GFLW pre-processors in the #If statement, the other targets will just ignore them. |
| ||
Oh, those pre-processors I just copied from another project, feel free to ignore them :) |
| ||
That is really nice! Thanks for sharing. |