I´m creating a shot'n up game but the enemys are so jumpy in y axis, how can I get smooth y values? The source capx is anexed. Thanks!
Because your force large steps for movement on you Y vector.
Change how you consider speed from a step size to a Pixel Per Seconds. Then multiply by dt.
so
Enemy.Y = self.y + (self.speed * dt)
hummm, Is Enemy.y <> self.y ??
Develop games in your browser. Powerful, performant & highly capable.
If applied to the Enemy object, Enemy.Y = self.Y
In some programing languages I believe is the "this" keyword.