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"

looking for a way to optimize blueprint for mobile

I'm working on a game for mobile, and I made the enemy follow the player (cars) I made the script in a way so a can change the speed of definite enemies types (forward speed and turning speed) that follow the player by using (find look at rotation) and using (Rinterp to) to control the speed of the turning and this been fired by using (set timer by function name) looped at time 0.01 Ialt text but the problem is I have at least 4 enemies at any giving time which means the whole thing been fired 4 time every 0.01, the game rapidly from drop and lags, now my question is how can optimize it?

Product Version: UE 4.20
enemy-bp.png (331.6 kB)
more ▼

asked Mar 26 '19 at 04:54 PM in Blueprint Scripting

avatar image

11 1

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

2 answers: sort voted first

Check out this documentation https://docs.unrealengine.com/en-us/Engine/Performance

This will help you pinpoint where possible bottle necks are coming from.

more ▼

answered Apr 09 '19 at 12:59 PM

avatar image

56 1 4 9

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

I'm not so sure you actually need this set up this way.

If you use the AI and just set the movement limits on construction I think it will do what you're trying to do. I've never messed with a rotation speed though.

I know you can set the movement speed, acceleration, that stuff. You can create a custom AI controller to do quite a bit.

Then the node AI move to. Some stuff to trigger it. Like On sense pawn Or a a way (because police cars or something) to alert the others to also follow.

Basically parent would have the variables for turnning speed, max speed etc. In the child pull movement onto the construction graph, and from it "set max speed" plug in you floats and have them set per enemy however you need. You could also put same stuff into a function you call if anything is changed

more ▼

answered Apr 15 '19 at 10:14 AM

avatar image

43 4 4 11

(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