How do I speed up falling objects in increments?

0 favourites
  • 7 posts
From the Asset Store
Template for an alternative to falling shapes, fully documented in comments and video
  • I'm making a "catch stuff as it falls game" and I was wondering how I could speed the falling up say every 250 points or so in an attempt to make the game harder as each bonus minute is rewarded.

  • The way I have done this is in the past is to make the falling objects have a 'bullet' behaviour attatched. Set up all the parameters so that the objects fall the way / direction you want them to, but under the 'speed' or parameter, make a variable called 'Speed'. (So under the events, have an event that is something like "On 'object to catch' created" set speed to "speed". That way, you can manipulate the speed at run time through algorithms that are fairly simple, such as "If score > 250, speed = 250"

    If you were going to event that, (and assuming your score is a global var), you'd make an event under system;

    "compare variable" and define what range of score you want for a particular speed (e.g between 250 and 500), and then have that even set the variable 'speed' to the speed you would like.

    Hope that helps and isn't too garbled!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Said it all! I don't think I would do in any other way.

  • There's an easier way to do it, you just need a Points variable to store your score, and your Bullet object

    Then, you can just;

    Bullet - Set speed to (floor( Points / 250 ) + 1) * 100 (Or any other speed increment)

  • The way I have done this is in the past is to make the falling objects have a 'bullet' behaviour attatched. Set up all the parameters so that the objects fall the way / direction you want them to, but under the 'speed' or parameter, make a variable called 'Speed'. (So under the events, have an event that is something like "On 'object to catch' created" set speed to "speed". That way, you can manipulate the speed at run time through algorithms that are fairly simple, such as "If score > 250, speed = 250"

    If you were going to event that, (and assuming your score is a global var), you'd make an event under system;

    "compare variable" and define what range of score you want for a particular speed (e.g between 250 and 500), and then have that even set the variable 'speed' to the speed you would like.

    Hope that helps and isn't too garbled!

    It's not too garbled but I do get a little bit of a deer in headlights without visuals XD.

  • Okay! I'll knock something up and upload a pic, it may take a few days though before I can get it up here.

    Edit: Also, as a point of interest, judging by your profile picture, is it safe to assume you're an RPG Maker user?

  • Thanks, in the meantime I've been able to cobble something together using the gravity and the equation Whiteclaws suggested and it's working so far but thanks for the help.

    And why yes I do use RPG Maker. I'm making a game called Mary Sue Busters. It originally was a demo I made for a final in my game studies class and I'm working on a complete version.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)