The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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 Doors and Text?
SiderealStop Offline
Junior Member

Posts: 32
Threads: 3
Joined: Jun 2012
Reputation: 0
#1
Level Doors and Text?

I'm back with more noobish questions~
Before anyone accuses me of not looking, I have. Anything I've come across, I've either tried to understand and tested myself, or just plainly didn't understand. I've tried tutorials as well, just...really not good at following those and have ended up in errors and stuff. Hehe.

Anyway, here's my problem...or rather question:

I have a key and a level door. I need to have the level door be locked, and the key unlock it and disappear. SO simple, right? I already know how to do that with a normal swing door. That's easy enough. But I can't seem to figure out level doors.

My script so far:


void OnStart()
{
}
void OnEnter()
{
PlayMusic("WarOfTheFools.ogg", true, 2, 0, 10, true);
}



Really not sure where to put stuff, and yes I know...this is a reaaaally noobish question! O_O

One other thing is that I have two doors in that same map. One is the level door I need to unlock with a key, the other is a different level door that I want to be...sorta...locked, but only because the player can't go through without the lantern. How would I set a message to appear for both doors before they're 'unlocked' and how would I 'unlock' the one door when the person picks up the lantern?

Sorry for all the random questions! o-o Thanks in advance!
07-16-2012, 06:52 AM
Find


Messages In This Thread
Level Doors and Text? - by SiderealStop - 07-16-2012, 06:52 AM
RE: Level Doors and Text? - by Steve - 07-16-2012, 09:41 AM



Users browsing this thread: 1 Guest(s)