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
Level Editor Help How do you make a well detailed level?
Neelke Offline
Senior Member

Posts: 668
Threads: 82
Joined: Apr 2013
Reputation: 26
#8
RE: How do you make a well detailed level?

Well, the simple stuff is some random sounds. For example, I used in a few of my own maps a collapse sound far away. This make it seem like the castle is on the edge of collapsing.

void TimerAreaRock(string &in asTimer)
{
    int iRand = RandInt(1, 6);

    PlaySoundAtEntity(asTimer+iRand, "24_rock.snt", asTimer+iRand, 1, false);

    StartScreenShake(0.007f, 0.0f, 4.0f, 2.0f);
    SetRadialBlurStartDist(0.8f);
    FadeRadialBlurTo(0.1f, 0.03f);

    AddTimer("EndRadial", 4.0f, "TimerEndRadial");
    AddTimer(asTimer, RandFloat(15.0f, 30.0f), "TimerAreaRock");
}
void TimerEndRadial(string &in asTimer)
{
FadeRadialBlurTo(0.0f, 0.1f);
}

void OnStart()
{
     AddTimer("AreaRock_", RandFloat(3.0f,10.f), "TimerAreaRock");
}

Basically, the timer in OnStart start this off. It loops thanks the AddTimer(asTimer, RandFloat(15.0f, 30.0f), "TimerAreaRock");. What area the sound plays on says in the OnStart timer. "AreaRock_". Put out areas on the map that is named the same.

AreaRock_1
AreaRock_2 and so on.

If you wanna add some more than six areas you have to change it. Lets say that we wanna add so many areas as 15. Then we change int iRand = RandInt(1, 6); to int iRand = RandInt(1, 15);

This might be confusing as f**k so ask me any questions if needed. If I confuse you, I cannot help it.
(This post was last modified: 02-18-2014, 08:43 PM by Neelke.)
02-18-2014, 08:43 PM
Find


Messages In This Thread
RE: How do you make a well detailed level? - by Neelke - 02-18-2014, 08:43 PM



Users browsing this thread: 3 Guest(s)