|
create a new object and call it "obj_fadein" set its depth to the smallest you can (or smaller than all objects that should be behind it)
Create
Draw
| CODE | alpha-=0.05 draw_set_alpha(alpha) draw_rectangle(view_xview,view_yview,view_xview+view_wview,view_yview+view_hview,false) draw_set_alpha(1) if(alpha<0)instance_destroy() |
place it in the room itself for a nice fade in.
-----------
create a new object and call it "obj_fadeout" set its depth to the smallest you can (or smaller than all objects that should be behind it)
Create
Draw
| CODE | alpha+=0.05 draw_set_alpha(alpha) draw_rectangle(view_xview,view_yview,view_xview+view_wview,view_yview+view_hview,false) draw_set_alpha(1) if(alpha>0){room_goto(my_room)instance_destroy()} |
---
OK, if you want easy use, create a new script, call it "goto_room" and enter this:
| CODE | | with(instance_create(obj_fadeout))my_room=argument0 |
So to switch the room while fading, type this:
This post has been edited by Best Games Forever on Feb 20 2008, 06:03 PM
--------------------
|