x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

How to make a Portal

I want to make a Portal for Multiplayer for a train that goes through the level infinitely by passing through the window, but i want it so the train doesn instantly teleports to the other portal but continually passes through it. Anyone know how to make that it passes through bit for bit?

Product Version: Not Selected
Tags:
more ▼

asked Jul 30 '18 at 10:25 PM in Blueprint Scripting

avatar image

Ryux33
1 1 2

avatar image phisigma Aug 01 '18 at 03:32 PM

Not enough information.

  1. What do you mean with “infinitely”? (My English may not be the best.)

  2. You mean, you can see both portals at the same time (from a third view)?

  3. How does the portal look like? What is “behind” it? Is it just a black hole leading into a mountain or something like that?

avatar image Ryux33 Aug 01 '18 at 09:30 PM

https://gyazo.com/6abcf849de37cc5df0379de05b7488a6 a portal like in the game "Portal" i did make a gif to show you waht i meant with infinitely. the guy keeps infinitly walking straigh ahead.

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

I suppose this is quite difficult, so this is my approach.

Surround the portal very narrowly with a collision box. When something enters this box, it is duplicated and the clone is transformed to the portaled position. When the cloned object leaves the box at the other portal, find out which of the two meshes is needless and destroy it.

So the object that shall be portaled just goes into the wall and the part behind the wall is not visible, so you cannot see that it is actually doubled. Therefore it is the easiest solution for the portal to be black.

I assume that you do not need the following aspects:

  • If you really want to be able to look through the portal (like in the game “Portal”), then you may need to project the corresponding viewport to the texture of the portal.

  • If you can watch behind the portal (e. g. it’s only a wall and you can go into the room behind this wall) you have to set the train’s material transparent depending on the pixel position – there are corresponding functions within the material editor.

Hope this helps, perhaps there are better ideas.

more ▼

answered Aug 02 '18 at 09:08 AM

avatar image

phisigma
135 3 6 9

avatar image phisigma Aug 04 '18 at 06:09 PM

If you need more help, just ask for in a comment. If your question is answered, you can mark it as solved :-)

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question