I have a little problem with sprites attached to swing doors and wondered if anybody knows a solution.
Let's assume you have a swing door (in my case one with two parts) and you want to put a sprite onto the door (or one half of it), let's say an "out of order" sign or something. What happens now when the swing door opens is that the sprite that was supposed to move with the door stays where it was before, i.e. at the position of the closed door.
Is there a way to make the sprite move with the door (and ofc if so, how is it done)?
Page 1 of 1
Sprites on swing doors
#1 Posted 13 May 2016 - 12:41 AM
This post has been edited by NightFright: 13 May 2016 - 12:42 AM
#2 Posted 13 May 2016 - 12:51 AM
Try this: Put a sector in front of the other that moves too. Then press F8 on sprite and change the statnum to 1.
#3 Posted 13 May 2016 - 01:03 AM
You mean like an invisible swing door with a sector effector just like the real door and the sprite inside?
#4 Posted 13 May 2016 - 04:19 PM
But at some point isn't the invisible door sector going to overlap the original door sector?
If the second door is offset slightly to the side to keep that from happening the sprite will appear to drift across the door as they open. Its hard to picture it in my head. Maybe I'm totally off on this.
If the second door is offset slightly to the side to keep that from happening the sprite will appear to drift across the door as they open. Its hard to picture it in my head. Maybe I'm totally off on this.
This post has been edited by Mark.: 13 May 2016 - 04:20 PM
#5 Posted 14 May 2016 - 01:17 AM
Any time there's a sprite on something that moves, it doesn't really move smoothly with the sector but in kind of a jerky step fashion.
#6 Posted 14 May 2016 - 01:49 AM
Fairly sure sprites simply don't move with swing doors.
What you want to do is create a rotate-rise effect with two thin sectors connected to each other. One will be raised up and textured as the door, the other one is a thin bit on the ground with the relativity bit set such that any sprites in there will move with the door. It all moves as one unit.
What you want to do is create a rotate-rise effect with two thin sectors connected to each other. One will be raised up and textured as the door, the other one is a thin bit on the ground with the relativity bit set such that any sprites in there will move with the door. It all moves as one unit.
#7 Posted 14 May 2016 - 03:00 AM
With all this I guess creating a new door texture would probably be easier.
#8 Posted 14 May 2016 - 07:31 AM
I was going to mention that except I'm guessing he wants to use stock textures only.
#9 Posted 14 May 2016 - 11:14 AM
deuxsonic, on 14 May 2016 - 03:00 AM, said:
With all this I guess creating a new door texture would probably be easier.
This is true. If he's going to use stock textures it is better to just accept the limitation and not have a sprite moving with the door. It's hard enough to make a level even when you aren't fighting the game engine limitations.
#10 Posted 14 May 2016 - 02:35 PM
As Micky mentioned - rise/rotate sector (without using the "rise" part)
This only works "smoothly" if the inactive sprite is located in the same spot as the pivot point.
Put the rotating sector in front of the swinging door sector. Adjust the pivot point and speed to match the door & keep it from clipping into the door sector. The sprite is going to "slide" a little when the rotating sector moves (because the sprite probably won't be directly over the pivot point)- but it shouldn't be too extreme. It will keep getting worse the more the sector "opens and closes". For that reason I'd make it possible to be activated one time only.
(or just do away with the door completely and use the rotating sector as the "door" with a pivot point at one end - or - have it like the pivoting door to the book store in E1L2)
Adjust and experiment
door.7z (426bytes)
Number of downloads: 57
This only works "smoothly" if the inactive sprite is located in the same spot as the pivot point.
Put the rotating sector in front of the swinging door sector. Adjust the pivot point and speed to match the door & keep it from clipping into the door sector. The sprite is going to "slide" a little when the rotating sector moves (because the sprite probably won't be directly over the pivot point)- but it shouldn't be too extreme. It will keep getting worse the more the sector "opens and closes". For that reason I'd make it possible to be activated one time only.
(or just do away with the door completely and use the rotating sector as the "door" with a pivot point at one end - or - have it like the pivoting door to the book store in E1L2)
Adjust and experiment
door.7z (426bytes)
Number of downloads: 57
This post has been edited by Forge: 14 May 2016 - 03:07 PM
Share this topic:
Page 1 of 1