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 set a timed action after game is killed?

I'm working on a mobile game which needs the 'lives' to be reset one day later. Now if I were doing right native on Android, I'd just use the AlarmManager API, but how can I achieve that using Blueprints? More on, how do I add cross-platform compatibility.

This is kind of the cycle:

  1. User gets killed, life gone

  2. User launches the game one day later and then the life is restored

This should be strong, as I won't want the user to change his phone's time and get the life. Also, I'm experienced in Android and iOS development and hence, I'd be fine writing some native code, like using some AlarmManager and then using a BroadcastReceiver or something like that. But how do I add this native code, and if I don't have to add the native code, then how am I supposed to schedule the alarms? (I am also fine with using C++, learnt that a lot)

Thanking you, Wil G

Product Version: UE 4.22
Tags:
more ▼

asked Apr 12 '19 at 01:27 PM in Blueprint Scripting

avatar image

DeveloperSN
1 1

avatar image DeveloperSN Apr 12 '19 at 01:56 PM

Has anyone run into the same issue?

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

1 answer: sort voted first

You can use a delay on the character and set a time so when det delay is over the HP vwill go to 100%

more ▼

answered Apr 12 '19 at 02:06 PM

avatar image

Blackforcedragon
0 2 8 10

avatar image DeveloperSN Apr 12 '19 at 02:08 PM

Can you guide me to do so?

(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