GameMaker Studio 2 (2.0 - 2.2.x)
Icon

AutoLight

Zhanghua

You must be logged in to obtain assets

Description

Multi position light mixing system.

Easy to configure objects and light sources.

Two basic widgets, you can further customize your own controls, or use scripts directly.

【1.Customize the objects.】

1.1 Create an object

1.2 In the Create Event, add the scripte ZLS_AL_Item_Initial()

1.3 In the Draw Event, add the scripte ZLS_AL_Item_Show()

【2.Customize the Light source】

2.1 Create an object and inherit the Parent Object oZLS_AutoLightPar

2.2 In the Create Event, add the scripte ZLS_AL_Light_Initial()

2.3 Optional to debug, In the Draw Event, add the scripte ZLS_AL_Light_ShowDebug() to show the Light orietation and range.

2.4 Change the light position by ZLS_AL_Light_SetPos(x,y);

2.5 Change the light basic attributes by ZLS_AL_Light_SetAttr(length,orientation,haft_range_angle,intensity); length is the light pixel radius in the room. orientation is the light orientation angle in degree. haft_range_angle is the half light range angle in degree. intensityis the light intensity between the 0~1, which 0 is none-light and 1 is full-light.

2.6 Change the light color by ZLS_AL_Light_SetClr(R,G,B) R,G,B are all in the range of 0 to 255.

2.7 Change the light Gradient type by ZLS_AL_Light_SetGradient(trur or false);

【3. Use the Arc Light widget oZLS_LightArc】

3.1 Drag an oZLS_LightArc to the room.

3.2 Adjust the position and angle of this oZLS_LightArc instance in the room.

3.3 Reisze the Object to change the Light Coverage.

3.4 Click it and config the Colour bar, the R,G,B is the light colure and alpha is bind to the intensity.

3.5 Click the Variables tab set the Gradient to true or false.

【4. Use the Cicle Light widget oZLS_LightCircle】

4.1 Drag an oZLS_LightCircle to the room.

4.2 Adjust the position and angle of this oZLS_LightCircle instance in the room.

4.3 Reisze the Object to change the Light Coverage and it is always circle shaped the radius is relative to the sprite height.

4.4 Click it and config the Colour bar, the R,G,B is the light colure and alpha is bind to the intensity.

4.5 Click the Variables tab set the Gradient to true or false and the HalfRange to 0 to 180.

End User Licence Agreement (EULA).

Age Rating: 4+

Version

GMS2 - Version 1.0.0. Published May 9, 2020

The First Version of AutoLight

Loading, please wait

Package contents

Loading, please wait

What is the issue?

Loading, please wait

Back to Top