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 remember Saved Levels in Blueprint?

I am creating a 2D Side Scroller Mobile Game with Multiple (100) levels.

I am trying to Save my Levels so that whenever a user launches the Game, the Levels that have been passed have a tick on them.

I have seen tutorials on how to Save a Game, but not one with individual / multiple Levels.

Steps would greatly help.

Thanks!

Product Version: UE 4.16
Tags:
more ▼

asked Jun 19 '17 at 07:54 AM in Blueprint Scripting

avatar image

AzzaMatta2571
36 4 7 13

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

2 answers: sort voted first

You should use some system that unlocks levels by number. And remember only that number. So initially this number will be 1, and only 1st level opened. When player finishes 1st level, you sill set it to 2, and so on.

With this you will construct levels selection screen by some loop, where saved number of opened levels used to set first N levels as opened, and other as locked.

more ▼

answered Jun 19 '17 at 08:09 AM

avatar image

redbox
4.3k 81 19 104

avatar image AzzaMatta2571 Jun 19 '17 at 09:38 AM

Could you give more detailed steps. And how would that store and load when the game is closed and re opened?

Thanks.

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

There is tutorial, that explains how to save and load in blueprints.

https://docs.unrealengine.com/latest/INT/Gameplay/SaveGame/Blueprints/index.html

When you create such setup, you will add opened levels variable to your SaveGame class and save/load it when its needed.

more ▼

answered Jun 19 '17 at 10:43 AM

avatar image

redbox
4.3k 81 19 104

avatar image AzzaMatta2571 Jun 20 '17 at 08:47 AM

This tutorial is good, but what if there is multiple (100) levels.

Thanks!

(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