Auto Horizontal Scrolling

0 favourites
  • 12 posts
From the Asset Store
All popular touch mechanics - scrolling, zooming, swiping
  • Hello, there !

    I have followed and studied with the "Space Blaster" in C2 example ..

    It is auto vertical scrolling, but How do i make a game like Space Blaster with horizontal scrolling model ?

    Here is my .capx file !

    dl.dropbox.com/u/37749698/Scroll%20To%20X.capx

    <img src="smileys/smiley19.gif" border="0" align="middle" />

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Every tick: Set Scroll X to ScrollX + SomeAmount * dt

  • Every tick: Set Scroll X to ScrollX + SomeAmount * dt

    Can you fix my .capx file ?

    Im very beginner ! <img src="smileys/smiley19.gif" border="0" align="middle" />

  • Hello hudt5. I just wanted to suggest that you try to do it yourself. Even if you mess up, get in there and give it a shot. Read the manual; search for the topics in the manual that you need help on; check the tutorials on this website; search the forum for related topics.

    I only suggest this because you'll get better at using Construct the more you mess with it--even if you mess it up.

  • Ok, Space Ape !

    Thanks for your advices ! forgive me ! :)

  • LOL... no need to apologize, hudt5! By all means, ask your questions, but try to do the work yourself so you can figure it out. Does that make sense?

    I ask questions about this stuff all the time! I hope you do, too.

    Let us know if you can get that scrolling to work!

  • I have completed my problems ..

    This is my events) ^_^

    <img src="http://dl.dropbox.com/u/37749698/Events%20Scroll%20to%20X%20-%20Success.jpg" border="0" />

    I only add a event "set Bullet (Scroller) angle of motion to 0 degrees" in system every tick (line number 1) ..

    Many Thanks ! :)

  • LOL... no need to apologize, hudt5! By all means, ask your questions, but try to do the work yourself so you can figure it out. Does that make sense?

    I ask questions about this stuff all the time! I hope you do, too.

    Let us know if you can get that scrolling to work!

    Im working around 2 hours for this problems ! thank you, I have learned a lot from your advices ! <img src="smileys/smiley4.gif" border="0" align="middle" />

  • Awesome work, amigo! I knew you'd figure it out.

    You might want to heed sqiddster's advice about adding the "* dt" to your calculations, though; otherwise, the player's framerate might make the scrolling effect wonky.

  • I just realized that looks wonky ..

    where I should put the "dt" ? or maybe i'll fix it later.. thanks

  • If you scroll up in this thread, you'll see sqiddster's comments about using the * dt expression.

    In needs to go in anything that affects movement. In your case, when the screen is scrolled by 1 (or whatever value you're using), you should add the * dt expression.

    The reasoning and such is found here: scirra.com/tutorials/67/delta-time-and-framerate-independence/page-1

  • okay thanks, Space Ape !

    i will try to work with it *dt .. :)

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