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"

Switching to another scene.

My group and I are working on a 3d board game. I am stuck on my part of trying to get the player to transition to another scene when the player lands on a spot. I need to have it to where other events will not happen while moving on other spots of the board game, only having an event happen when he lands on the right spot. Example the player rolls a 3 the character needs to walk on spots 1 and 2 without triggering the events, when he lands on spot 3 the event will trigger. I do know how to make the game transition to another level (where the player will fight an enemy) using a trigger box. I also need to know how to have the game transition to the fight scene then transition back to the board game without the board game level progress restarting from the beginning.

Product Version: UE 4.8
Tags:
more ▼

asked Sep 18 '15 at 12:42 AM in Blueprint Scripting

avatar image

The1456
1 3 4 3

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Let's take it piece by piece:

..."only having an event happen when he lands on the right spot."

So it is very easy thing, I know that you are going to use OnBeginOverlap or any other similar event. but the problem that you have several instances of the same blueprint (1, 2 & 3) and you want it to happens with only one of them.

The most easy way is by setting a bool variable within the blueprint, and lets call it for now "theCorrectSpot", set that bool by default into false, and finally set it to true only in the right spot.

Once the beginoverlap event happens, you check if the bool is true or not, and then decide to move forward by processing the load level.

Your second part was:

"......fight scene then transition back to the board game without the board game level progress restarting from the beginning"

Have you ever tried to find out the boundaries of a level file ?!!!

Of course no, because so far it seems ENDLESS...the meaning is, you don't have to put both things into two different maps, while you can simply keep everything inside one map/level file; but far away from each other. And make your code/logic to pause the first screen once you are at the second screen.....Thats actually the whole point of having editor within the engine, to make things easier!

-m

more ▼

answered Sep 18 '15 at 02:57 AM

avatar image

mamoniem
1.2k 33 25 66

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
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