I had alot of problems making fade in and fade out on DSGM 5.
But i got a solution for everyone now!!!
Create 2 objects and name them like fade_in_obj and fade_out_obj.
In fade_in_obj we gonna do it like this
Event Type: Create
Declare i as Type s8 with a value of 0 (i;s8;0)
Loop i from -16 to 0 (i;-16;0)
-- start block
-- Set bottom screen brightness to i (bottom;i)
-- Set top screen brightness to i (top;i)
-- Wait for VBL
-- end block
Delete object
In fade_out_obj we gonna do it like this
Event Type: Create
Declare i as Type s8 with a value of 0 (i;s8;0)
Loop i from 0 to 16 (i;0;16)
-- start block
-- Set bottom screen brightness to i (bottom;i)
-- Set top screen brightness to i (top;i)
-- Wait for VBL
-- end block
Delete object
thats it
now just in you're action do create object and done!
