stainsor's Forum Posts

  • Welcome!

    A word of advice: Don't fall for Ashley and Rich's funny business. SoldjahBoy is the only straight shooter around here.

  • Ooh, that's embarrassing. A day late and a dollar short.

    But seriously I bet Google [Bot] has cranked out some killer .caps too bad he/she/it is such a hermit.

  • Maybe the list of keyboard shortcuts could also go in the offline help.

  • That definitely qualifies as an infinite universe in my book.

  • Good to know, thanks. (I always wonder how people know that stuff.)

  • Okay. I added a short note to that effect.

  • Yeah thanks for putting this in movie form. Considering that this is the first tutorial most people go for it's nice to have it in such an approachable format.

  • Thanks for posting cap.

    By the way I just noticed a "bug". When you stand here:

    you can't shoot the SMG. I think it's because the image point for the Arm sprite is located at the hand instead of at the tip of the gun barrel. So whenever the player's hand is overlapping a terrain piece the bullets are destroyed.

    For the spaz out bug: Set the animation angle when the 'a' and 'd' keys are pressed instead of the "overlaps rightside/leftside" conditions.

    For the ladder climbing: Maybe when you're standing by the ladder you could press 'f' to get on the ladder instead of 'e'. And if you jump through the air and land on the ladder maybe you could automatically stick to it. I can't remember exactly how ladders worked in HL.

  • [quote:1w4ibeed]Registered users: Davioware, deadeye, Doppel, Flame, Google [Bot], linkman2004, newt, stainsor, SuperV

    Google [Bot] actually registered? How thoughtful of it.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • This is a very sweet game. I'm very tempted to make a couple more levels just so I can play it some more.

    As far as calculating standard deviation:

    + variance = 0

    + for each:

    - variance_x = variance_x + (mean_x - current_object.x)^2

    + std_dev_x = sqrt(variance_x)

    That will give you a true standard deviation. But it also requires going through the loop a second time. I think it would be faster to just calculate an approximate standard deviation:

    + Always

    -> Set x_sum to 0

    -> Set y_sum to 0

    -> old_mean_x = mean_x

    + For each swarm_object

    -> Add swarm_object.x to x_sum

    -> Add swarm_object.y to y_sum

    -> variance_x = variance_x + (old_mean_x - current_object.x)^2

    + Always

    -> Set mean_x to x_sum / swarm_object.count

    -> Set mean_y to y_sum / swarm_object.count

    -> std_dev_x = sqrt(variance_x)

    (Sorry for mixing syntaxes but I just had time for a quick post.)

    If you want a better approximation for the standard deviation maybe adjust old_mean_x by taking into consideration which direction the swarm is traveling and shifting old_mean_x in that direction. (or maybe just shifting it towards the current mouse position) but I think the approximation I showed would be good enough.

  • Why does everyone have fancy glowing computers? I don't have a camera, but my setup is pretty, uhh, low tech. I have about half a case with bits of computer parts bolted on to it, and a dual monitor setup - not a fancy one - a chunky old CRT on the left, and a very old LCD on the right with the response time of the united nations (if you drag a window around it blurs everywhere). Pictures if I can find a camera/be bothered.

    Beautiful mental image. The only thing that would complete it is if you drew it in ASCII art! Please, please!

  • Welcome, welcome.

  • Thanks all. Lots of good info.

  • You must have some condition or loop that causes the character animation to toggle angle back and forth between 0 and 180. Recheck your logic for events that change the angle and maybe you can track down that "spaz out" bug. Hard to diagnose without a .cap file.

  • curious why youd ask

    There are only a small number of reasons why I ask. First because I am very new to event based game programming and I'm not familiar with any option other than Construct. Second because I like Construct and I very much enjoy reading people more experienced than I write about how great Construct is.

    Thx