Sam Mortimer's Recent Forum Activity

  • In a platformer I'm making, I only want an impact sound to play if the player's Y-vector is greater than 100 when they hit the ground. I guess the way to do this is by working out how fast the player was moving a few ticks before they landed, so I've written, "Every thirtieth of a second, set instance-variable-1 to the Y-vector, wait a thirtieth of a second, then set instance-variable-2 to equal instance-variable-1. If instance-variable-2 is greater than 100 when the player lands, make a noise." Unfortunately this is buggy and unreliable and I'm sure there's a better way to do it.

    Another example is if I wanted something to follow the player around, such as a hat that lags behind a little bit. I want to write, "Every tick, set the hat's position to what the player's position was a few ticks ago." So what do I do? How do I find out values from the past?

  • Thanks a ton! Shame families are only in the full version.

  • So I've got some bullets. They bounce off of solids. I want them to disappear after three of those bounces. How do I do that?

    I thought it would be as simple as adding 1 to an instance variable with each bounce, then destroying the bullet when that variable reaches 3, but the problem is that there doesn't seem to be any kind of 'on-collision' event. There's 'on-collision-with-a-specific-object', but not 'on-collision-with-any-solid' by the looks of things. Surely I don't need a separate event for every solid object in the game?

    So, um, what do I do?

  • . . .

    Damn that is smart. Thanks! That explains a lot!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Sometimes an object will flail around miles behind whatever it's rope-pinned to, other times it'll be just a pixel or two away. I must be missing something obvious here... but how on earth do I control the maximum distance between an object and the object it's rope-pinned to?

  • I'm very new to Construct 2, so sorry if this is a daft question.

    Is there a way to check the bit rate of music I've imported? I imported some music for my little project, and now I'm importing another track and I want it to have the same audio quality, but of course I've forgotten what I used previously.

    How can I check the bit rate of the other tracks?

Sam Mortimer's avatar

Sam Mortimer

Member since 7 Nov, 2013

Twitter
Sam Mortimer has 2 followers

Trophy Case

  • 11-Year Club
  • Popular Game One of your games has over 1,000 players
  • Email Verified

Progress

13/44
How to earn trophies