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"

Need advice for good practice

Let’s say I have a racing game and there are three parts:

  1. A first person level where you are in a car dealership. This is where you buy cars and look at them

  2. A time attack level where you choose one of your cars and do a time attack level

  3. A versus level where you go against 1 computer AI and comepete to this finish

For each of these scenarios, should I make a different player controller for each?

The reason why I’m asking this is because I’ve been following the Blueprint Time Attack tutorial, provided by UE, for my game. The video is a little outdated and the tutors logic is not straightforward and messy. He made a player controller that had certain variables specific to the time attack game mode, which worries me because if I were to expand upon this to my game, it would make everything complicated.

So 1 player controller or multiple? What’s the best practice?

Product Version: UE 4.19 Preview
more ▼

asked Mar 13 '18 at 07:18 AM in Blueprint Scripting

avatar image

6 2 4 9

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

1 answer: sort voted first

I don't know much, but I think, that different player controllers would be easier to use (for example, you don't need to steer in a car dealership, right?). On the other hand, I suppose, some of code in the second and third parts would be the same (driving a car). In this case, I would create an ActorComponent that can be added and used in both of these Controllers.

more ▼

answered Mar 13 '18 at 01:11 PM

avatar image

78 5 9

(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