Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How Do i fade in/out
Itskody Offline
Member

Posts: 100
Threads: 30
Joined: Mar 2011
Reputation: 1
#15
RE: How Do i fade in/out

(04-06-2011, 03:13 PM)MrBigzy Wrote: You can set a global variable, say SetGlobalVarInt("LevelLoad", 1). It will make an int named LevelLoad equal to 1. Then you can put in your script:
if(GetGlobalVarInt("LevelLoad")==1) //put your levelload with the background here
if(GetGlobalVarInt("LevelLoad")==2) //put your second levelload with the background here

Then, when you do something on the 2nd map, make it go SetGlobalVarInt("LevelLoad", 2)
That way, when you go back, it'll load the 2nd background.

Edit: Oh, I see, two level doors. So do what I said before, but put two areas with collides, one before each level door. And then put SetGlobalVarInt in both of those areas so it will set what background to use.

haha im so confused what you mean still, is there anyway you can go MORE in depth
04-06-2011, 04:00 PM
Find


Messages In This Thread
How Do i fade in/out - by Itskody - 04-06-2011, 10:04 AM
RE: How Do i fade in/out - by Russ Money - 04-06-2011, 10:10 AM
RE: How Do i fade in/out - by Itskody - 04-06-2011, 10:13 AM
RE: How Do i fade in/out - by Russ Money - 04-06-2011, 10:24 AM
RE: How Do i fade in/out - by Itskody - 04-06-2011, 11:23 AM
RE: How Do i fade in/out - by Russ Money - 04-06-2011, 11:46 AM
RE: How Do i fade in/out - by Itskody - 04-06-2011, 12:04 PM
RE: How Do i fade in/out - by Russ Money - 04-06-2011, 12:10 PM
RE: How Do i fade in/out - by Itskody - 04-06-2011, 12:21 PM
RE: How Do i fade in/out - by Russ Money - 04-06-2011, 12:23 PM
RE: How Do i fade in/out - by Itskody - 04-06-2011, 12:26 PM
RE: How Do i fade in/out - by MrBigzy - 04-06-2011, 02:33 PM
RE: How Do i fade in/out - by Itskody - 04-06-2011, 02:37 PM
RE: How Do i fade in/out - by MrBigzy - 04-06-2011, 03:13 PM
RE: How Do i fade in/out - by Itskody - 04-06-2011, 04:00 PM
RE: How Do i fade in/out - by MrBigzy - 04-06-2011, 04:07 PM
RE: How Do i fade in/out - by Itskody - 04-06-2011, 04:18 PM
RE: How Do i fade in/out - by MrBigzy - 04-06-2011, 04:27 PM
RE: How Do i fade in/out - by Itskody - 04-06-2011, 05:29 PM
RE: How Do i fade in/out - by MrBigzy - 04-06-2011, 09:46 PM



Users browsing this thread: 1 Guest(s)