1
0

Step_0.gml 338 B

123456789101112
  1. /// oLight Step Event
  2. // 确保结构体存在 (防止报错)
  3. if (light_struct != undefined) {
  4. light_struct.x = x;
  5. light_struct.y = y;
  6. // 如果你想做“呼吸灯”效果,可以在这里动态修改 alpha
  7. // light_struct.alpha = 0.8 + sin(current_time / 200) * 0.2;
  8. }
  9. x = global.player.x
  10. y = global.player.y-64