Vertical Space Shooter Template. Speed adjustment question?

0 favourites
  • 5 posts
From the Asset Store
Fruit Slicer Template & Quality fruit and slice graphics (capx,c3p,png,illustrator files)
  • Hey everyone.

    In the Vertical Space Shooter Template the speed of the player is controlled by the event saying that if the player is in touch the object will move towards the touched position at 300 *dt per pixel. There is a co-event preventing the unpleasant jittering if the player is touching the place where the object currently is. If you try to increase these numbers, the speed of the player's movement increases as well. The problem is, the movement of the object becomes very blocky.

    To give an example, if you increase the value of 300 *dt ppx to 1300 * dt ppx the object moves very fast, but only in small blocks. How do you fix this, how do you make the object move as smoothly as possible.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • some values are going to be too large to move smoothly, *dt is framerate independent, so it can move regardless of the frame rate, which means at high speeds things are going to skip visual pixels on the screen since the frame rate is not drawing fast enough to show each movement between refreshes.

  • Interesting.

    I tested the game on nexus 4 and the movement is quite blocky. However, if I put my finger on the bottom of the screen, under the game layout, the controls become smooth as silk. Any explanation to this?

  • No idea on that one, unless there is an issue in the events that is causing it to jitter like that, perhaps multiple touches registering, or triggering multiple events...

  • Ok, I will be doing further tests and will inform you on my findings.

    Thank you for your help nonetheless

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