How do I make the drops fall sequentially faster

  • From lines 12 to 21 how do I make it so the speed of the falls faster in sequence with the scores progressing? For some reason when I am changing this via the world gravity it is not working and I can not figure out why? I was trying to create a levelling system similar to Tetris where the further you score / go into the game the faster the blocks or drops fall in this case from the top going faster and faster as you get further in the game.

    Please see file at: http://filebin.ca/28chEq6rcc0h/Drops.capx

  • uhhhmmm, you are changing the variable WorldGravity

    I don't see any events where this variable is doing anything except for an action on start of layout..

    You might want to make an action somewhere setting the physics gravity to the WorldGravity variable..

  • I thought I did this on line 1, third one down as so:

    'Drop Set Physics world gravity to worldGravity'

    Unless I am missing something there or going the entirely wrong way about this based on what you just said?

  • I thought I did this on line 1, third one down as so:

    'Drop Set Physics world gravity to worldGravity'

    Unless I am missing something there or going the entirely wrong way about this based on what you just said?

    The system - "on start of layout" event is performed on start of layout..

    The layout only starts once and so the actions attached are only called once..

    If you want the actions to be performed every tick, you use the system - "every tick" event..

    But in your case you could call this action every time a drop is created, for at other times it would be of no use changing the gravity..

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I think that has sorted it. Many thanks!

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