Cape simulation

Monkey Forums/Monkey Code/Cape simulation

SLotman(Posted 2014) [#1]
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 :)




therevills(Posted 2014) [#2]
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.


SLotman(Posted 2014) [#3]
Oh, those pre-processors I just copied from another project, feel free to ignore them :)


Why0Why(Posted 2014) [#4]
That is really nice! Thanks for sharing.