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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Final Fantasy style battles

So I want to trigger combat when a player model collides with a baddie, in the style of Final Fantasy / Child of Light / etc. This means (to me) storing state in the current level in my GameInstance subclass, loading a new (battle) level, fighting, then re-loading the original level and restoring the state from the cached data. All that loading and unloading sounds a bit time-consuming. Is it possible to retain levels in memory whilst switching to another one?

(I've skimmed the sections on level streaming and it sort of suggests that there may be something in that, however that doesn't seem quite right as I'm not loading additional content for the existing level, I'm loading an entirely new level.)

Product Version: UE 4.11
Tags:
more ▼

asked Jun 06 '16 at 11:01 AM in Using UE4

avatar image

lordGoldemort
54 4 11 11

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

1 answer: sort voted first

Have you looked at level streaming?

You could load your battle arena while unloading your world or the other way around or just some parts of the world (stream by blueprint). depending on you layer structur of your world.

more ▼

answered Jun 06 '16 at 11:56 AM

avatar image

KAEPS133
100 11 15 27

avatar image lordGoldemort Jun 06 '16 at 12:15 PM

Hi KAEPS133, yes I started looking at it, got slightly concerned it wasn't intended for what I was doing. After reading your reply I found this:

https://wiki.unrealengine.com/Blueprint_Manual_Level_Streaming

which I shall read tonight. Thanks!

avatar image KAEPS133 Jun 06 '16 at 12:30 PM

"Intened for what I'm doing" is always a thing. Sure there are more and maybe a better solution. But if you can abuse a feature to reach your goal, why not.

I have used this method in a slightly different way in UE3, it can work if you want :D

(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