YoYoGames / GameMaker-Bugs

Public tracking for GameMaker bugs
15 stars 7 forks source link

Manual Content: Page for draw_light_get function has slight inaccuracy in description of returned values #6503

Closed Indibulous closed 3 days ago

Indibulous commented 1 week ago

Description

On the manual page for the draw_light_get function, it lists the [2], [3] and [4] elements of the returned array as containing the x position, y position, and z position of the light. This is true when using it to get the parameters of a point light, but if the light is directional, the [2], [3] and [4] elements actually contain the direction the light is facing, rather than the position.

image

Changing them to something along the lines of "[2] = x position (x direction for directional lights)", "[3] = y position (y direction for directional lights)", "[4] = z position (z direction for directional lights)" would fix this.

Manual Link

https://manual.gamemaker.io/monthly/en/GameMaker_Language/GML_Reference/Drawing/Lighting/draw_light_get.htm

stuckie commented 1 week ago

Should just say "value" rather than "position"

YYBartT commented 3 days ago

Changed to "value" and added a note to make the difference clear. Also updated all pages related to lighting.