
Moving 3-D floors?
Moderator: Graf Zahl
- DoomGuy
- Posts: 47
- Joined: Tue Apr 25, 2006 4:02
Moving 3-D floors?

- DoomRater
- Posts: 397
- Joined: Tue Jul 19, 2005 4:14
- Location: Programmer's Room, talking to Will Harvey
- Contact:
- chopkinsca
- Posts: 183
- Joined: Thu Dec 29, 2005 8:09
- Paul
- DRD Team Admin (Inactive)
- Posts: 1058
- Joined: Thu Jun 30, 2005 13:30
- Location: Poland - Grojec / Radom
- Contact:
- Graf Zahl
- GZDoom Developer
- Posts: 7148
- Joined: Wed Jul 20, 2005 9:48
- Location: Germany
- Contact:
- DoomGuy
- Posts: 47
- Joined: Tue Apr 25, 2006 4:02
Horizontally moving 3-D floors
Chopkinsca,
Please explain about the instant moving sectors and raising a small bit of the edge..... I am interested. Show and explain any script please. I am not very handy with scripting yet. I'm learning though. Thanks!
Thanks too for everyone's responses.
Please explain about the instant moving sectors and raising a small bit of the edge..... I am interested. Show and explain any script please. I am not very handy with scripting yet. I'm learning though. Thanks!
Thanks too for everyone's responses.
- chopkinsca
- Posts: 183
- Joined: Thu Dec 29, 2005 8:09
You setup the bridge so instead of 1 3d floor, it's made up of a few 3d floors each making up an equal size section of the bridge.
You number your control sector tags starting from where you want the bridge to start building/moving, then number them to the end. It's easier if you number them in sequence with no gaps (1, 2, 3, 4) otherwise you'd need to use an array if there are gaps (1, 4, 5, 7).
Then you just run a for loop, which goes to each control sector and raises it instantly and a small delay before the next one so it sort of simulates motion.
Maybe the sample .wad will help explain things.
You number your control sector tags starting from where you want the bridge to start building/moving, then number them to the end. It's easier if you number them in sequence with no gaps (1, 2, 3, 4) otherwise you'd need to use an array if there are gaps (1, 4, 5, 7).
Then you just run a for loop, which goes to each control sector and raises it instantly and a small delay before the next one so it sort of simulates motion.
Maybe the sample .wad will help explain things.
- Attachments
-
- bridge.zip
- (3.17 KiB) Downloaded 123 times
- Nash
- Developer
- Posts: 1226
- Joined: Sun Sep 25, 2005 1:49
- Location: Kuala Lumpur, Malaysia
- Contact:
Graf - How about making it possible for actors standing on top of another moving actor to move as well?
It would then be a quick job to make a custom 3-d model that looks like a floor and moving platforms will be possible.
The current behaviour is that if you are standing on an actor and it starts moving, you fall off because you don't move WITH the actor under you.
It would then be a quick job to make a custom 3-d model that looks like a floor and moving platforms will be possible.
The current behaviour is that if you are standing on an actor and it starts moving, you fall off because you don't move WITH the actor under you.
- Paul
- DRD Team Admin (Inactive)
- Posts: 1058
- Joined: Thu Jun 30, 2005 13:30
- Location: Poland - Grojec / Radom
- Contact:
- DoomGuy
- Posts: 47
- Joined: Tue Apr 25, 2006 4:02
moving 3-D floors
Thanks for all of your repies. I tried your wad Chopkinsca and it looks pretty good. Aces to scripting. I really need to learn more about it. Any good resources to learn scripting? Just out of curiosity, do you need to have the delay in there? I set it to 1 and it really didn't make a whole lot of difference. Would it wind up being an endless loop or would it shoot right out? Guess I can try it and see.....
As far as the moving actors; if you figure it out, please let me know and explain how to do it. Thanks to all of you. You are all a great resource for the rest of us.
As far as the moving actors; if you figure it out, please let me know and explain how to do it. Thanks to all of you. You are all a great resource for the rest of us.
- chopkinsca
- Posts: 183
- Joined: Thu Dec 29, 2005 8:09
The delay affects how fast you want it to move out, or, how long each loop is (one section raises per loop). With no delay, each sector would be raised at the same time, so the bridge would appear instantly.
Basically, scripts are just a line of instructions. I think I learned most of the basic scripting from this page which is also reached from zdoom.org under tutorials. It might be tough at first, especially if you have no programming backround (I knew the basics of Basic, so that helped in my case). Another place, which may be good for learning is the Zdoom Wiki itself. The wiki wasn't around when I started, but it's extremely helpful, even if it's just used now and then as a reference. Link to ACS section.
It may take a while to learn, but it's worth it to know scripting.
Basically, scripts are just a line of instructions. I think I learned most of the basic scripting from this page which is also reached from zdoom.org under tutorials. It might be tough at first, especially if you have no programming backround (I knew the basics of Basic, so that helped in my case). Another place, which may be good for learning is the Zdoom Wiki itself. The wiki wasn't around when I started, but it's extremely helpful, even if it's just used now and then as a reference. Link to ACS section.
It may take a while to learn, but it's worth it to know scripting.
- Cutmanmike
- Posts: 482
- Joined: Sat Sep 03, 2005 23:34
- Syfo-Dyas
- Posts: 182
- Joined: Sun Oct 09, 2005 21:54
- Location: Ohio
- Contact:
- BlazingPhoenix
- Posts: 488
- Joined: Sun Aug 28, 2005 5:11
- Contact:
- DoomGuy
- Posts: 47
- Joined: Tue Apr 25, 2006 4:02
Horizontally moving 3-D floors.
Thanks for your input Silver Sonic, but I don't have any problem making 3-D floors move up and down (see original post). The whole topic is about making them move horizontally (level with the ground) as opposed to vertically (up and down).