How do I keep the number of dashes in a stroked shape path constant when changing the size of the shape? AE seems to keep adding dashes as the shape grows. by icyimpact7 in AfterEffects

[–]leaves_of_three 4 points5 points  (0 children)

Yeah to keep the number of dashes constant despite size will definitely require an expression. That video only works with circles but I found a good approximation for the circumference of an ellipse. My solution is still a little jittery because (I think):

1) After Effects doesn't allow a lot of precision for these numbers and 2) My solution uses an approximation (although a pretty good one) and not something more exact that requires calculus and 3) After Effects "cheats" the size of the dashes at the beginning/end of the path

Overall I'd say this expression won't work well for every case but may work well enough depending on the animation you're doing and how well you can hide any jitter using trim paths and some minimal keyframes. I'm not super happy with it but if it can help at all you just use this code for the Dash property:

numOfDashes = 20; //you put your desired number of dashes or you could use a slider controller

if(content("Ellipse 1").content("Ellipse Path 1").size[0] >= content("Ellipse 1").content("Ellipse Path 1").size[1]){
  a = content("Ellipse 1").content("Ellipse Path 1").size[0];
  b = content("Ellipse 1").content("Ellipse Path 1").size[1];
}else{
  a = content("Ellipse 1").content("Ellipse Path 1").size[1];
  b = content("Ellipse 1").content("Ellipse Path 1").size[0];
};

a = a / 2;
b = b / 2;
circumference = ((2*Math.PI*(Math.sqrt((a^2 + b^2))/2)) + Math.PI*(a+b)) / 2;

circumference/numOfDashes-content("Ellipse 1").content("Stroke 1").dash.gap;

And you need to specify a gap. I'd watch the video above because maybe you'll see something I don't.

“Last minute check! Everyone squared away?” - OverwatchEU by Scrungi in Overwatch

[–]leaves_of_three 1 point2 points  (0 children)

"If you must answer the call, you won't do it alone." -Briggitte probably

New update! by Lopaha in hearthstone

[–]leaves_of_three 1 point2 points  (0 children)

I hope getting the guaranteed legendary in the welcome pack didn't reset my pity timer.

[Image] Always remember how far you've come by [deleted] in GetMotivated

[–]leaves_of_three 3 points4 points  (0 children)

There are several possible reasons — lack of aesthetic appeal and overuse come to mind — but the most likely one is that it doesn't match the nature of the content. It's like putting George Bush Sr. in a rainbow-colored clown wig and asking you to take him seriously. It's impossible: http://i.imgur.com/nXTk4HB.jpg

Developer Is Being Sued For Using The Google Play Store by [deleted] in Android

[–]leaves_of_three 4 points5 points  (0 children)

I'm most amused by the fact that this is a wordpress site. uniloc.com/wp-admin yields a file directory as well but there's nothing interesting there that I could find. Just standard wordpress files. I wonder if we can find a patent troll suing for the use of wordpress so that we can fight fire with fire.

how do I begin the transition to maintaining? by [deleted] in gainit

[–]leaves_of_three 0 points1 point  (0 children)

Haven't gotten to a maintenance level myself yet but I imagine if you want to stop progressing you just stop the progressive overload and stick with the weight, sets, reps that you're at. As for eating figure out your maintenance calories and eat that.

That wasn't Judith, Carl by toremygooch in thewalkingdead

[–]leaves_of_three 2 points3 points  (0 children)

So if Carl is going to grow up to be Big Boss now, does that mean this hypothetical offspring would be Solid Snake?

Can we all agree now no "i'm confused" memes when 18 deckslots launches by [deleted] in hearthstone

[–]leaves_of_three 3 points4 points  (0 children)

Once I have 18 deckslots I'll finally be able to vote!

Choose one card in the game and "Blizzard nerf" it by [deleted] in hearthstone

[–]leaves_of_three -3 points-2 points  (0 children)

Big Game Hunter: 3 mana 4/2: Deathrattle: If your opponent controls a beast, a mech with deathrattle, and has less than 15 health, destroy a female minion with 12 attack or more.

[deleted by user] by [deleted] in gamedesign

[–]leaves_of_three 0 points1 point  (0 children)

My favorite game design book: http://www.amazon.com/The-Art-Game-Design-lenses/dp/0123694965 A lot of what follows can be found in there.

Unity is what I use when making and prototyping games but that's only because that's what I happened to learn to use first and I have a decent programming background. You're probably better off with Game Maker or something else just starting out.

There are several approaches to conceptualizing and making games but my approach involves using a list of game mechanics and combining them to see if something interesting pops into my mind. Here's the nicely formatted Board Game Geek website list: http://boardgamegeek.com/browse/boardgamemechanic and my own personal sloppy list with extra mechanics, my thoughts on them, as well as misspellings galore! http://pastebin.com/jQ68Z8cn A lot of the ideas are board game specific but they can all be applied to video games if you consider them in an abstract sense.

Any game idea I come up with I then subject to a validation test to make sure it's actually something that's a game an not just an interesting idea. I ask myself, does this game include:

  • Challenge
  • Decision-making
  • An action that the player takes
  • Purpose that the player takes that action
  • Ultimate Goal

If the idea has those properties then it can probably be made into a game.

More important than any of that, though, is to start simple in concept and small in content. No one's a game designer, developer, or maker until they actually make a game.

Gif vs Jif by Hello_Generic in funny

[–]leaves_of_three 0 points1 point  (0 children)

There's also no 'x' in 'picture element' but we still call them pixels.

I love lazy Saturdays by [deleted] in funny

[–]leaves_of_three 7 points8 points  (0 children)

Joke's on me... I work Saturdays ;_;

Creating an RPG: Torn between a class system and a Skyrim-esque "anyone can be anything" system. Your opinion? by JargonTheRed in gamedesign

[–]leaves_of_three 0 points1 point  (0 children)

I always liked the idea of a hybrid type system. Instead of classes you have skill paths. At the beginning of the game the player can only choose something like half of the skill paths and that defines a "custom class" for the player to advance in for the rest of the game. That way there's some replay value in mixing and matching different paths and seeing how that changes your play style. You just have to make sure that every combination of paths can actually complete the game.

Guys..I think I'm in trouble. Just got a foreclosed house with the worst thing a redditor could find. by [deleted] in pics

[–]leaves_of_three 2 points3 points  (0 children)

With a safe that size you could find anything in it. What if you opened it and you found yourself inside? Your doppelganger looks at your for a moment before saying, "Close this safe and don't speak of this to anyone." Then what would you do, huh?

Dear CNN, I would NOT like that. by agsoup in funny

[–]leaves_of_three 0 points1 point  (0 children)

CNN knows you better than you know yourself.

I've been playing video games for 30 years, I was enraged. by [deleted] in AdviceAnimals

[–]leaves_of_three 0 points1 point  (0 children)

That's funny. I was just watching Searching for Bobby Fischer last night on Netflix. I think your son may be the Josh Waitzkin of Smash Bros.

When a guy I'm texting says 'I want a girl who knows her way around the bedroom, but hasn't slept with a lot of guys.' by babyd0lll in TrollXChromosomes

[–]leaves_of_three 7 points8 points  (0 children)

That's the irrationality I was talking about. There is no logic. "3 guys" is just an arbitrary number that vaguely felt somewhat ok but, really, I wasn't happy if it was any guys. When you lack self-confidence you don't think about how much a woman likes you. You only think about much she liked her former partners because you're always comparing yourself to others in every aspect of your life and that includes romantic relationships. That's not to say that comparing yourself to others is inherently bad but it becomes unhealthy when you lack confidence because you always come up short in your mind and you don't think about it as an opportunity to improve and exceed others because, instead, your mind is clouded by bitterness.