Powered by Invision Power Board

 
    Reply to this topicStart new topicStart Poll

> GM question-solved!
Panama
Fez
Posted: Sep 13 2009, 07:33 PM
Quote Post


Don't cry
[*][*][*][*][*]


Group Icon
Group: Members
Posts: 1348
Member No.: 5734
Joined: 1-October 08

Status: (0d) [--]


So I figured I'd just re use this topic now that I actually have a gm question related to programming.

So here's my question: I have a room, that doesn't scroll, has a player, some baddies and some floors. Now I want this room to fade out to a different room (with a new background, tiles and enemies) but I don't want the character and other objects to fade out, how would I do this?
So I basically want everything else to face out then back in as something different around me.


Is there any easy way to do this?


SOLVED-
although it isn't programming related.

When I type, it types over my text in front of what I'm typing. I appears to be because I somehow activated the OVR (shown at the bottom of the code box) instead of INS.

I don't know how to switch it back to INS!


If I'm not being clear enough, please say.

This post has been edited by Fez on Sep 16 2009, 08:20 AM


--------------------
PM
Top
Canada
Yoshbert
Posted: Sep 13 2009, 07:36 PM
Quote Post


Eat your veggies.
[*][*][*][*][*]
[*][*]

Group Icon
Group: Members
Posts: 2161
Member No.: 4336
Joined: 29-August 07

Status: (0d) [--]


Just simply press the "Insert" key on your keyboard.


--------------------
PMEmail PosterUsers Website
Top
Panama
Fez
Posted: Sep 13 2009, 07:37 PM
Quote Post


Don't cry
[*][*][*][*][*]


Group Icon
Group: Members
Posts: 1348
Member No.: 5734
Joined: 1-October 08

Status: (0d) [--]


Thanks.


(I should have been able to figure that out sad.gif )

This post has been edited by Fez on Sep 13 2009, 07:37 PM


--------------------
PM
Top
United States
YoManRuLz
Posted: Sep 13 2009, 07:37 PM
Quote Post


sit down, it's just me


Group Icon
Group: Members
Posts: 152
Member No.: 6502
Joined: 6-September 09

Status: (0d) [--]


press your insert key (next to your home key) and I think it changes when you close game maker

^whoa! fast repliers^

This post has been edited by YoManRuLz on Sep 13 2009, 07:38 PM


--------------------
PMEmail Poster
Top
Panama
Fez
Posted: Sep 14 2009, 08:03 PM
Quote Post


Don't cry
[*][*][*][*][*]


Group Icon
Group: Members
Posts: 1348
Member No.: 5734
Joined: 1-October 08

Status: (0d) [--]


I have a new programming related question, I'd love some help!


--------------------
PM
Top
India
Char
Posted: Sep 15 2009, 07:11 AM
Quote Post


fad was bad
[M][*][*]

Group Icon
Group: Admins
Posts: 2123
Member No.: 2856
Joined: 25-October 06

Status: (0d) [--]


well
you can create an object like objFader that has a high depth (10000) but lower than the depth of your highest tileset layer

then keep reducing the alpha of drawing, and draw_rectangle(view_xview,view_yview,view_xview+view_wview,view_yview+view_hview
,0) [i think those are the arguments]


--------------------
aa this broke


Make your own | If a level is breaking the rules, note the ID and PM me.
Reference (thanks Frogjester!)
PMEmail PosterUsers WebsiteAOLYahooMSN
Top
Panama
Fez
Posted: Sep 15 2009, 06:01 PM
Quote Post


Don't cry
[*][*][*][*][*]


Group Icon
Group: Members
Posts: 1348
Member No.: 5734
Joined: 1-October 08

Status: (0d) [--]


So I did that, and I had it so when my alpha was equal to a certain number I switched rooms the re faded in.

But it never switched rooms - all that happened was the tiles and background went black. then I tried again and nothing happened at all sad.gif



--------------------
PM
Top
United States
YoManRuLz
  Posted: Sep 15 2009, 07:01 PM
Quote Post


sit down, it's just me


Group Icon
Group: Members
Posts: 152
Member No.: 6502
Joined: 6-September 09

Status: (0d) [--]


QUOTE (Fez @ Sep 15 2009, 06:01 PM)
So I did that, and I had it so when my alpha was equal to a certain number I switched rooms the re faded in.

But it never switched rooms - all that happened was the tiles and background went black. then I tried again and nothing happened at all sad.gif

testing if it's equal to is a bad idea in this situation, instead check if it's greater than 1 instead


--------------------
PMEmail Poster
Top
United States
Mike Shinoda
Posted: Sep 15 2009, 07:17 PM
Quote Post


Aka Artic
[*][*]

Group Icon
Group: Members
Posts: 802
Member No.: 3598
Joined: 12-April 07

Status: (0d) [--]


I can make an example for you if you have gm7.
do you have it?


--------------------
rain.

AKA Artic

I'm gonna miss you ol' pal. See you guys in the 3.0.
PMEmail PosterUsers WebsiteIntegrity Messenger IMAOLYahooMSN
Top
Panama
Fez
Posted: Sep 15 2009, 07:31 PM
Quote Post


Don't cry
[*][*][*][*][*]


Group Icon
Group: Members
Posts: 1348
Member No.: 5734
Joined: 1-October 08

Status: (0d) [--]


Yup.


Although this would be for the compo, so would that be allowed?


--------------------
PM
Top
United States
Mike Shinoda
Posted: Sep 15 2009, 08:44 PM
Quote Post


Aka Artic
[*][*]

Group Icon
Group: Members
Posts: 802
Member No.: 3598
Joined: 12-April 07

Status: (0d) [--]


QUOTE (Fez @ Sep 15 2009, 07:31 PM)
Yup.


Although this would be for the compo, so would that be allowed?

hmm.. i guess that could be a problem

Okay so it seems that you have the code and everything, just it doesnt work right

I think the problem is your making it something like

if image_alpha=0.8
room_goto_next()

when it should be something like
if image_alpha>0.8
room_goto_next()

this is because GM wont always land exactly on '0.8' or whatever your using. Simply change the '=' to a '>' (or maybe <...) and it should work


--------------------
rain.

AKA Artic

I'm gonna miss you ol' pal. See you guys in the 3.0.
PMEmail PosterUsers WebsiteIntegrity Messenger IMAOLYahooMSN
Top
Panama
Fez
Posted: Sep 15 2009, 08:54 PM
Quote Post


Don't cry
[*][*][*][*][*]


Group Icon
Group: Members
Posts: 1348
Member No.: 5734
Joined: 1-October 08

Status: (0d) [--]


So that works, but it wasn't quite what I was after, so maybe I wasn't clear enough.

IF you play this game: http://www.mfgg.net/index.php?act=resdb&pa...02&c=2&id=19040 and when you move onto the next stage, you'll notice how the character, the lakitu and everything else isn't changed but the background, floor and enemies all fade out and then back in as something else.


Is there any way to do this?


--------------------
PM
Top
United States
Mike Shinoda
Posted: Sep 15 2009, 09:14 PM
Quote Post


Aka Artic
[*][*]

Group Icon
Group: Members
Posts: 802
Member No.: 3598
Joined: 12-April 07

Status: (0d) [--]


Select the 'persistent' box under the 'depth'?

I cant get the game to run, maybe it was made with gm6 and i use vista. I dont feel like downloading the converter again (got wiped off when i erased some files)

But if you want stuff to stay, you can just use th persistent variable


--------------------
rain.

AKA Artic

I'm gonna miss you ol' pal. See you guys in the 3.0.
PMEmail PosterUsers WebsiteIntegrity Messenger IMAOLYahooMSN
Top
Panama
Fez
Posted: Sep 15 2009, 09:25 PM
Quote Post


Don't cry
[*][*][*][*][*]


Group Icon
Group: Members
Posts: 1348
Member No.: 5734
Joined: 1-October 08

Status: (0d) [--]


Oh sorry, I thought I had those checked already.


Whoops, but thanks anyways.


--------------------
PM
Top
United States
Mike Shinoda
Posted: Sep 16 2009, 06:53 AM
Quote Post


Aka Artic
[*][*]

Group Icon
Group: Members
Posts: 802
Member No.: 3598
Joined: 12-April 07

Status: (0d) [--]


QUOTE (Fez @ Sep 15 2009, 09:25 PM)
Oh sorry, I thought I had those checked already.


Whoops, but thanks anyways.

sooo.... did it work?


--------------------
rain.

AKA Artic

I'm gonna miss you ol' pal. See you guys in the 3.0.
PMEmail PosterUsers WebsiteIntegrity Messenger IMAOLYahooMSN
Top
United States
YoManRuLz
  Posted: Sep 16 2009, 07:29 AM
Quote Post


sit down, it's just me


Group Icon
Group: Members
Posts: 152
Member No.: 6502
Joined: 6-September 09

Status: (0d) [--]


QUOTE (Mike Shinoda @ Sep 15 2009, 08:44 PM)
hmm.. i guess that could be a problem

Okay so it seems that you have the code and everything, just it doesnt work right

I think the problem is your making it something like

if image_alpha=0.8
room_goto_next()

when it should be something like
if image_alpha>0.8
room_goto_next()

this is because GM wont always land exactly on '0.8' or whatever your using. Simply change the '=' to a '>' (or maybe <...) and it should work

wow, thats almost exactly what I said. o-well at least he gets an answer


--------------------
PMEmail Poster
Top
Panama
Fez
Posted: Sep 16 2009, 08:19 AM
Quote Post


Don't cry
[*][*][*][*][*]


Group Icon
Group: Members
Posts: 1348
Member No.: 5734
Joined: 1-October 08

Status: (0d) [--]


Yes, so thank you very much!


--------------------
PM
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.0607 ]   [ 14 queries used ]   [ GZIP Enabled ]   [ Server Load: 1.39 ]