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 make that traks are randomly chosen each time the player plays an online game

I am creating an online car racing game and I would like to know how to make that tracks are randomly chosen each time the player plays an online game its an android game

Product Version: Not Selected
Tags:
more ▼

asked Dec 19 '18 at 12:40 PM in Blueprint Scripting

avatar image

NayDark
1 1

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

1 answer: sort voted first

In short, you would have to make an array in GameState perhaps, where you would have the available music tracks in. When the game starts, you would pick a random index from the music track array in GameState. When the currently playing music ends, you would repeat this (pick another random music track from that array). I suggest you put the playing music in an AudioComponent so you can adjust volume, add events when the music ends (so that you can switch to another random music).

Feel free to ask more specific questions if you need to.

more ▼

answered Dec 19 '18 at 12:44 PM

avatar image

Lupix
86 1 4 3

avatar image NayDark Dec 19 '18 at 06:06 PM

I'm really sorry to be so stupid but I was talking about the game level race track not a sound track I'm really sorry that you had bothered to write this text but I have another question that takes the same principle

I would like to put forward a system who does lottery kind the same concept the player looks at an ad then he will have a lot and each lot has a probability example: a car will have a 3% chance of being recovered and lots will have more chance like 55% or 65% I want also that the player have 20 tests a day and when the player plays them all the lottery will be closed until the next 24 hours also that the player has the jackpot the lottery is over for him I know my questions are crazy but nothing ventured, nothing gained If you don t know how to answer my question, you can postpone it for me. if not,i ve posted another question: https://answers.unrealengine.com/questions/859076/how-find-a-multiplayer-match-with-differentes-clas.html and i m creating an android game

(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