Powered by Invision Power Board

 
    Reply to this topicStart new topicStart Poll

> Game Maker Help... Again
Spain
Sergeant DeeY
Posted: Feb 20 2008, 03:27 PM
Quote Post


~Heh Heh~
[*][*][*]

Group Icon
Group: Members
Posts: 1344
Member No.: 4730
Joined: 17-November 07

Status: (0d) [--]


There is a way to fade the screen without game maker registered?

This post has been edited by Darkyoshi on Feb 20 2008, 03:29 PM


--------------------
The signature will not be available when the new forums shows up.
~~DeeY~~
PMUsers Website
Top
United States
Armada
Posted: Feb 20 2008, 03:31 PM
Quote Post


Babe-a-licious Investigator
[*][*]

Group Icon
Group: Members
Posts: 236
Member No.: 4905
Joined: 19-February 08

Status: (0d) [--]


I have code for that, it needs some special touches for fade-out to move the next room. You'll also need a fade controller for fade-ins on a room start. Use a black rectangle and fade it with an alpha value. If you need code I'll PM it to you.

This post has been edited by Armada on Feb 20 2008, 03:31 PM


--------------------
!!BRAHND GNU TEEHFEEH SHUW!!
PMEmail PosterUsers WebsiteAOLYahooMSN
Top
Spain
Sergeant DeeY
Posted: Feb 20 2008, 03:32 PM
Quote Post


~Heh Heh~
[*][*][*]

Group Icon
Group: Members
Posts: 1344
Member No.: 4730
Joined: 17-November 07

Status: (0d) [--]


QUOTE (Armada @ Feb 20 2008, 09:31 PM)
I have code for that, it needs some special touches for fade-out to move the next room. You'll also need a fade controller for fade-ins on a room start. Use a black rectangle and fade it with an alpha value. If you need code I'll PM it to you.

Can you PM the code please?

Thanks


--------------------
The signature will not be available when the new forums shows up.
~~DeeY~~
PMUsers Website
Top
United States
Armada
Posted: Feb 20 2008, 03:33 PM
Quote Post


Babe-a-licious Investigator
[*][*]

Group Icon
Group: Members
Posts: 236
Member No.: 4905
Joined: 19-February 08

Status: (0d) [--]


Sure, hang on.


--------------------
!!BRAHND GNU TEEHFEEH SHUW!!
PMEmail PosterUsers WebsiteAOLYahooMSN
Top
Uruguay
EDGE
Posted: Feb 20 2008, 05:32 PM
Quote Post


I'll be back...
[*][*]

Group Icon
Group: Members
Posts: 2775
Member No.: 2518
Joined: 18-August 06

Status: (0d) [--]


Just make a sprite as big as the room(paint it black) and use the alpha codes.
There are others way to do this, I'm sure there are a few tutorials on the GM site.


--------------------
"You've been playing Super Mario Sunshine. haven't you?"
~The Yoshi Army~Team 1-Up~MFGG Submissions~Ref~
PMEmail PosterMSN
Top
United States
Noone
Posted: Feb 20 2008, 05:53 PM
Quote Post


You win the prize!!!
[*][*][*]

Group Icon
Group: Members
Posts: 511
Member No.: 3101
Joined: 23-December 06

Status: (0d) [--]


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
CODE
alpha=1


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
CODE
alpha=0


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:
CODE
goto_room(room)


This post has been edited by Best Games Forever on Feb 20 2008, 06:03 PM


--------------------
user posted image
PMEmail PosterUsers WebsiteICQAOLYahooMSN
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

  Topic Options Topic Options Reply to this topicStart new topicStart Poll

 




[ Script Execution time: 0.0422 ]   [ 14 queries used ]   [ GZIP Enabled ]   [ Server Load: 0.39 ]