Page 1 of 1

One-way platforms in reverse?

Posted: Thu May 22, 2014 8:53 pm
by SMB3
Hello!
I wanted to make a platform that works like the one-way blocks, but in reverse. I tried to take the wood brick (the small airship one) and make its text file:
nohurt=1
jumphurt=1
nogravity=1
playerblocktop=0
However, all this accomplished was to make the block push the player to the side on contact with its top. They get stuck in blocks if there are any. Is there any way to do this? (I would prefer to avoid using instant warps, because they look choppy and will probably lag my "craptop.")
Thanks!

Re: One-way platforms in reverse?

Posted: Thu May 22, 2014 9:15 pm
by Julia Pseudo
The only way I can think of is to put invisible axes on the side you want the player to end up on, which turns the gateway into solid block(s). If you wanted it to be multi-use, you could put more invisible axes on the entrance side, which take away the blocks and make it passable again, and then put all the axes on a generator. It wouldn't work very well in multiplayer though.

Re: One-way platforms in reverse?

Posted: Thu May 22, 2014 9:50 pm
by Chad
I believe Valtteri accomplished this in his ToB3 entry, Brinstar Vegetation. Looking at the coding of the NPC he used, it looks to be about the same as what you did. However, they were all one block big and placed in a row. Are you using the original width for the airship NPCs? I can see that causing problems, because a shorter width means less push distance.

Re: One-way platforms in reverse?

Posted: Sat May 24, 2014 4:50 am
by RudeGuy
1. Put some axes above the blocks and some axes under the blocks
2. Make 2 layers: one for the blocks and one for the block replacing a background. It must be the same of the normal blocks.
3. Make 2 events: first one must have hide blocks and show the backgrounds. The second one must have show the blocks and hide the backgrounds. "no smoke" must be set on all the 2 events
1. Axes above the blocks must trigger the first event when they die. Axes under the blocks must do the same with the second event.

Well, hope this helps.