0 Favourites

How do I move bullets at an increasing then decreasing speed

  • In a game I'm currently working on, I'm trying to write an event for a "room-scrolling" object where it moves up 800 pixels when the assigned key is pressed. However, I also want the object to accelerate at first, then start decelerating halfway through, but still move exactly 800 pixels. I've tried this in numerous ways, but a few issues I've had are as follows: 1.

    The RoomScroll object does not move consistently with every run-through. It might move by a marginally different amount sometimes, but at other times it can get 10, 20, 50 pixels off, and I don't know why.

    2.

    It does not move exactly 800 pixels. It seems near-impossible to make it move exactly 800 pixels.

    3.

    The movement looks uneven. By this I mean that it seems to accelerate faster than it decelerates.

    If anyone has a solution to this problem or perhaps even a formula, it would be greatly appreciated. Thanks! Hans the Red

    .capx file: dropbox.com/s/jeuyuz3hjh3o8

    qt/Stairs%20Bullet%20Movement.capx?dl=0

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)
Similar Topics Posts Views Last Post
Unread hot topic
564 105,197
rexrainbow's avatar
rexrainbow
Unread hot topic
99 10,136
karshinkoff's avatar
karshinkoff
Unread hot topic
0 Favourites
Time to move forward?
110 9,560
GG-Works's avatar
GG-Works