0 Favourites

accelerate and decelerate

  • Hi Guys,

    I am sure this has been asked quite a lot of times, i just want if you can point me to a right thread which just shows a simple platform acceleration and deceleration of an object.

    Should i use Custom Movement, bullet behavior or bullet speed to control this? very confused at the moment.<img src="smileys/smiley3.gif" border="0" align="middle" />

    Would appreciate your quick replies.

    Thanks guys.

  • heres a link to my capx file. if the runner collects a bottle, how should i show a acceleration rather that direct speed shifts and after couple of seconds it should come to a normal speed.

    dropbox.com/s/p64owdbwgmjvq5f/myrunner.capx

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • ok..thanks LittleStain,

    but here's where the real problem lies..i have given a platform behaviour to my 'player' but when he collects a boost, i dont really move this player anywhere, what i do is increase the tiled background or the objects speed to which i have given a bullet bahviour..in bullet behaviour we do not have max speed..so how do i accomplish this?..

    If you see the capx file, right now all the objects are created dynamically and moves across the scene using the bullet behaviour and in boost all these objects move faster. i am not saying this is the best way to do this but if you can suggest an alternative..i wouldnt mind giving it a shot.

    Thanks again.

    ameer.

  • I can't open your capx, for it uses a third party plugin, but I understand what you mean.

    There are multiple ways to do this, but here's an easy one (It's not the best solution, but it will work).

    Create a global variable called TopSpeed

    Set it to the original bullet behaviour.

    System compare two values : bullet.speed < TopSpeed

    • add 1 to bullet speed.

    You should do that for each of your objects having bullet behaviour

    Then add the event to change the variable TopSpeed to a higher number when collecting a boost.

  • LittleStain, You are the man! <img src="smileys/smiley20.gif" border="0" align="middle" />

    Implemented and works like a charm!

    Thanks so much!

  • Looks like spam to me from architravels. Just report his post.

  • excuse me? spam..since the guy helped me..i have praised him and am thankful to him..why would you say its a spam??? <img src="smileys/smiley3.gif" border="0" align="middle" />

  • There was another message which has now been deleted. That message was spam. Nothing to do with your question and/or my answer to it.

  • oh ok!..oops! my apologies zenox98. <img src="smileys/smiley9.gif" border="0" align="middle" />

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