Asteroids like movement

Hey guy, is there any instructions / tutorial on how to make a asteroids ship movement ( 2D style )? I get everything so far working until i want to fly into another direction, it will immediately stop and would start from zero speed. i only want to slow down if i use a break function. Hope you can help me.

Post script, get pointers. How are you moving / rotating stuff?

Ah sorry, forgot to post it:

forget about the deceleration for now, it was an attempt it tried to play around with.

You may need to rethink & redo the whole thing. You’re using tick which executes every frame - so what, 60 / 120 times per second. So you’re playing the timeline that many times every second. Why use timeline in the first place?


Try this:

image

Alternative for breaking where we do not care about the facing direction:


How close is this to what you need? Breaks work with S. What else needs adding?

2 Likes

Jesus the first picture was my first attempt, is it possible that the turning boost broke everything and made the ship stop ??? it works like i wanted it now !!! thank you so much, i wasted like an hour just to figure out how this could work :confused: Thank you ! Timeline was meant to set the decelerations and accelerations. The tick was used just to test something

Hi! I’m currently in the process of recreating Asteroids as a University project and this post has helped out a ton with getting the movement down so thank you for that.

One problem I have though is that I can’t seem to get the character to rotate on the Z axis but when I plug the axis value into Y and X it works. Any idea where I’m going wrong? I’m still in the early stages of learning Unreal Engine so any help would be appreciated