Tutorial 14: Creating a Light Effect in Game Maker Studio 2 You could demonstrate this effect in a separate room instead of your main playing room. If so, create a button to it on the start screen. Create a new object called objLight Add a Create event to this object with the following code: /// @description Create a surface the size of the current room surf = surface_create(room_width, room_height); surface_set_target(surf); draw_clear_alpha(c_black, 0); surface_reset_target(); Add a Step Step event to this light object and paste this code. Look out for where the player object and player lazer is referenced in the
******************************************
The remainder of this content is restricted to site members.
It is free to join.
New users please register below.
If you are an existing user, please log in.