PDA

View Full Version : Creating Unbreakable Joints?



ChrisF2112
10-16-2012, 12:17 AM
I'm currently working on a defend your castle level where you must flick enemies into the air in order to destroy them. It's coming along well, but there is one problem I've been having.

The enemies are stickmen, and they are made of sticker panel connected with positional wobble bolts. Their running animation looks quite good, but when I make them flickable, the joints break and the arms and legs go flying off into oblivion. Clearly that's not supposed to happen.

I've already tried to make each part invincible with tweakers, but that did nothing. I also tried changing them from sticker panel to neon, and that helped a little bit but still did not fix the problem (and made them look worse). So, is there anyway that you know about to prevent joints from breaking as I've described? Or will I have to suffice with limiting the speed that you can throw your stickmen enemies?

koltonaugust
10-16-2012, 04:40 AM
Maybe don't fling them so hard? JK! That is really odd. Are you using the make them movable default (the blue materials default)?

fullofwin
10-16-2012, 12:59 PM
I ran into the same thing recently and also had no luck with the invincible tweaker (the sticker panel isn't breaking...it's the bolts which are uber weak on sticker panel). In my case it was just with a mover and it wasn't an issue to limit its speed to avoid the problem.

I'd try to embrace the breaking behavior...it sounds amusing and fighting the weird things the game engine does always leaves me angry/frustrated. Assuming you emit your stickmen and use the destroy input/option on the emitter it will clean up the stray limbs wherever they end up. :)

* I wonder if dephysicalized stone would behave better?

ChrisF2112
10-16-2012, 01:52 PM
I tried dephysicalized neon, but that messed up my layers a bit so I'm not going to go with that, even though it did help.

I am using a touch tweaker for moving them, so I tried turning down the speed (from infinity to about 150) that you can move them quite a bit. That definitely helped, but did not solve the problem.

I think I'll go with what fullofwin said and not try to fight the phyiscs engine. Instead I'll make my animation using a flipnote sort of animation. That way everything will be glued together and won't be able to fall apart. Although it was somewhat amusing to throw your enemies legs and arms off their body and then watch a one legged stickman attack your castle.

koltonaugust
10-19-2012, 02:34 AM
You could also use a follower on the legs with a rotator(though I think the follower stays a bit behind)

ChrisF2112
10-19-2012, 02:25 PM
You could also use a follower on the legs with a rotator(though I think the follower stays a bit behind)

If I do that, I'd have to have the follower following a tagged location on the main body. Since there are going to be multiple enemies, I'm afraid that the legs and arms would end up following the wrong people. Although that might be somewhat comic, it would probably be worse than the legs and arms breaking off altogether.

I tried to do it flipnote style and it looked good, but took too long to emit and slowed the game to a crawl. I'm getting quite frustrated at this point. I would hate to just scrap the idea, but I'm running out of good ideas for this. I suppose I could just not animate them, since that seems to be what is the main source of problems.

If you guys have any other suggestions, I'm always willing to listen.

koltonaugust
10-19-2012, 11:40 PM
Hm, this is indeed quite an odd predicament. When exactly are the legs flying off? Right after you flick them, while you are holding them or when they land? If it is after they are flicked I think it would be quite humorous and should be included imo since if you flick them hard enough you know they are dead. You could try to sneak in a piece of metal glued to the sticker panel if it is hidden well. The only other thing I can think of is use less frames in your animation.

ChrisF2112
10-20-2012, 11:42 AM
Hm, this is indeed quite an odd predicament. When exactly are the legs flying off? Right after you flick them, while you are holding them or when they land? If it is after they are flicked I think it would be quite humorous and should be included imo since if you flick them hard enough you know they are dead. You could try to sneak in a piece of metal glued to the sticker panel if it is hidden well. The only other thing I can think of is use less frames in your animation.

The most annoying part is the loud breaking noise it makes, it just reeks of bad levelness, if you know what I mean. They break during flicking, even if you have not flicked them hard enough to kill them. I've decided to put this issue off until a bit later, mainly because it is sapping my will to work on this project. Once I've got everything else set up, I'll try some 5 frame animation, or perhaps doing some hidden metal or invisible material. By then I'll hopefully have all my units set up so I can just do all of them at once anyway.

koltonaugust
10-20-2012, 05:49 PM
I know exactly what you mean. Sometimes that breaking noise is heard from my level when nothing has broken O_o The only reason I say hidden metal is because i don't believe invisible will work since it is a light material. It could work but I'm not sure. Touchscreen moving right now has a lot of bugs so it could very well be fixed in a patch.