Search the Community
Showing results for tags 'Door'.
Found 4 results
I really think Leadwerks doors hate me. During the past couple of years I've been on and off learning Leadwerks, but nothing has caused more furstration than doors! Feels like every time I try to add a simple door to test map, it means trouble. It all began with my very first steps in Leadwerks, for some reason I was not able to create working door even with prefab. I asked my first questions here back then. Well, I moved to other stuff and learned a lot, then second time came back to doors, still no luck! So I went to look for some other door script other than the stock one, found working one and took that as a base for my doors and it worked perfectly. Moved to other stuff, learned more. Now I needed to test some stuff with doors, and it's been a while... and AGAIN, they refuse to work, they stutter and shake. So I reverted back to stock script, merged my own additions to doors to that script and it works, AGAIN... for how long, we don't know... Ps. This was just a rant, doors work now for me, but I can't believe I'm the only one with this much door problems! I've learned so much, done much more complex things by now, but still... doors. DOORS!
I'm in the process of making my first game, so i went to Leadwerks and started creating things. The problem comes when I want to make that a door opens when 2 pressure plates are activated. So, i wrote this code to create a "switch" that requires 2 inputs to output a signal to the door (in the flowgraph editor), but it doesn't work... function Script:Start() bool1 = false bool2 = false end function Script:Input1() --in bool1 = true end function Script:Input2() --in bool2 = true end if (bool1 == true and bool2 == true) then self.component:CallOutputs("Output") end what i'm doing wrong? i'm very new in programming
So I was just randomly working on my game when I came across this weird little problem. I don't know what gives since I've done the EXACT same "puzzle" before but now it's has this weird glitch on it. The issue is that the player is able to use a door that's only openable via a button. and causes this weird behaviour, while in the pre-alpha level, I did the exact same thing TWICE, same scripts and everything. I've already checked the FPSPlayer, but it can't be that since I can play the other levels fine with it. Here are the doors that work without problems. And the doors that have problems... Any ideas as to what could be causing this?
Greetings. I'm hoping I have the right area for this, because honestly I'm not sure what to make of this. I'm still learning how to Leadwerks, so I'm betting on my ignorance being the source of my frustrations. I am just playing with doors. I've seen Jorn's video tutorial, and I've read the equivalent guide. Nothing seems to shed a light on how doors are really set up. In the video tutorial, there seems to be a prefab for the door model. I don't seem to have that door, so I set up a scene, with a room and a door with a gap so the door can move up the wall. Assigned the script to the door (just a manual use door) and tried it out. It's really an interesting thing what happens when I use the door. At first it looks like nothing is happening, but then you can see it's gently rocking. Then it sometimes gets more violent and just "bursts" out of the door frame. Then bounces off the ceiling a few times until it forces through. A few seconds later, the door slides seamlessly back down the intended track, as though nothing happened. Tried fiddling with the door script settings (particularly the direction) to no avail. Variations on a theme. In it's current state at the time of writing is the best I've gotten it so far. You know those sliding patio doors? Sometimes they get caught in the track and it jams in the doorway? It pretty much does that, but vertically. Gives up half way, then slides back down. Puzzled, I try out a swinging door. Put together similarly, I try the door. Most of the time the door "sinks" in, then slowly pushes back to the starting position. Other times it'll pivot alright.. then get faster.. and faster.. so fast that if you get near it, you die. Tried fiddling with that door's rotation and pin point to no avail either. I also tried spacing those doors so they're JUST touching other surfaces, or just floating inside surrouding surfaces (door frames/adjacent walls). I also tried chaning the physics type to scene or prop with no change in behaviour. I have no idea what to make of this. The scripts look okay, though I don't have a great deal of lua experience. (read: none) There's GOT to be more than just assigning a door script to an object. Could someone point me in a direction to look? Or, better yet is there a decent set of tutorials out there? I don't like video tutorials. While for instance Jorn's is excellent.. I just have trouble working with them. Not to mention half the time they're showing code I end up squinting until my retinas burst. I've found a smattering of guides and reference materials but nothing that addresses doors specifically (so far). Thanks for your advice. Oh, and (possibly) relevant platform details: Linux Mint 17 and Leadwerks Standard (Steam)