How do I constantly scroll?

  • No worries, honestly I love working through these little problems, and its been interesting to test out different things!

    I cant be sure on wether the behaviour is frame rate independent, but considering 'simulate control' effectively runs every tick, you would imagine it might be affected by frame rate changes. Try experimenting between that and the bullet behaviour for best results is my best guess. As is so often the case, wherever possible playtesting should give you the answer!

    Glad to be of help!

    Hi SeriouslyCrunchy,

    You've been a huge help - this topic has been very interesting! One last question though:

    Would I be right in thinking: System| Every tick - Player Object| Set Platform vector X to Self.X+250*dt

    Is regulating the X movement of the player object by dt therefore making it frame rate independent?

    This doesn't really seem ideal though...

    As far as I could tell after some quick prototyping the platform and bullet behaviours aren't actually frame rate independent (unless someone knows otherwise). This is obviously a problem for me so I need a way of making the movement robust to changes in frame rate!

    Any suggestions?

    Even after a few years programming I'm still yet to realise it's never, ever simple!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • TMAJA

    Sorry for the delay in reply, and sadly I only have time to write a few brief words as its a busy day today.

    You are right that "System| Every tick - Player Object| Set Platform vector X to Self.X+250*dt " would be frame rate independant but :

    Had a quick gander at the manual on dt : https://www.scirra.com/tutorials/67/del ... dependence right at the bottom it says "Don't forget behaviors already use dt (except with Physics where you must turn it on yourself)"

    This would indicate that using the bullet behaviour to constantly move your player forward would make your game frame rate independent, so long as there is no other event changing the horizontal movement of your player character. However im unable to test it out right now to confirm. Give it a go and see what happens!

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