J
Jarmar Games
Guest
layer_get_vspeed and layer_get_hspeed seem to always return 0. I'm working on adding delta timing to my project and was looking into how to dynamically update the vertical scrolling background layers. They seem to always return 0 for me. Anyone having similar issues?
I'm using like this:
Yea, made sure global.delta_timer was not bugged. It's working as it should. I can print lsp and it will be zero.
I'm using like this:
Code:
var lid = layer_get_id("space_background");
var lsp = layer_get_vspeed(lid) * global.delta_timer;
layer_vspeed(lid, lsp);