00:00
00:00
MSGhero
Free time is nice time.

Nick @MSGhero

Age 30, Male

Somewhere in the North

Joined on 12/15/10

Level:
17
Exp Points:
2,848 / 3,210
Exp Rank:
19,879
Vote Power:
5.85 votes
Rank:
Police Sergeant
Global Rank:
6,517
Blams:
456
Saves:
937
B/P Bonus:
12%
Whistle:
Normal
Trophies:
6
Medals:
661
Supporter:
11y 4m 29d
Gear:
3

Lightning Grappling Guns

Posted by MSGhero - July 31st, 2014


Progress on the Po4 game is going alright.  VoidForce has some computer issues which might affect progress on his end, but I can churn out features without art.  At least he can write up the story and draw some concepts in the meantime.  The October deadline makes this much more manageable.

Or I can use code to make the art. More specifically, my brainchild, a lightning grappling gun:

Baller, indeed.

Which you can try here (if the dump allows playing swf content again).  Click the blue square to grapple it.

Not sure how it will fit into the story, but I'll be damned if it isn't sexy.  The story will have to be fit around this.

3611941_140683884243_grapple.png

Probably the coolest-looking thing I've ever coded. Made with Haxe + OpenFL + Nape by Me.


Comments

looks pretty dope

Once I put some glows and stuff on it, it'll look even nicer.

I really wanted to make a grappling hook game a while back (still do) but the physics were too much at the time for me... maybe I should revisit it...

http://bomtoons.newgrounds.com/news/post/72626

Nape makes it trivial, maybe 10-20 lines handle the core grappling. Luis said a while ago that grappling and flamethrowers were the coolest mechanics, I guess everyone agrees!

Very cool! Great contribution;) I hope to get into Haxe/OpenFL etc after PO4 when I have some more free time... I've heard nothing but good things!

It's daunting at first, and some haxe features are still black magic to me, but it's so similar to flash coding (except way better) that it feels natural after a while.

Wow this is really cool and badass. I stumbled across Nape last month but was afraid to dive into it since I've only been coding since the start of the year. Wasn't sure if it would be too advanced for me to figure out/incorporate into one my games and/or test games.

No harm in messing around with it. There are a demos that show how the basic stuff works plus good documentation. It makes most physics-related things easy to create.

I used to work in the spice lab at an imitation crab production plant and I had to scoop pounds and pounds of MSG into batches. That shit is gnarly.

Thank you for your service.

So, is the lightning a sprite that you just stretch and squeeze depending on the distance? It does look really awesome. Will be cool to see how you'll apply it artistically.

I rotate it, but I don't stretch it at all. Each lasts for 1/3 sec, so I leave its scaling alone. Each 1/3 a new sprite is created and a new bolt of lightning is math-ed into existence.