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 an emote/dance shop

Hi everyone I'm making an FPS game and was wondering if someone could help me with creating a shop for emotes so like, if the player has X amount of coins they can buy an emote (Like in fortnite) any help is appreciated because this is one of the things I would really, love to have in my game to make it a bit better than it is already. thanks

Product Version: UE 4.19
Tags:
more ▼

asked Jul 03 '18 at 03:52 AM in Blueprint Scripting

avatar image

Chad_kroeger2005
25 1 5 12

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

1 answer: sort voted first

Ok so what I would do here is break it down to the parts you would need to make:

  • A coin variable, perhaps in the player state or player controller, thats included in your save system.

  • A data driven ui for available emotes. Id recommend taking a look at this - https://www.unrealengine.com/en-US/blog/creating-a-data-driven-ui-with-umg

  • A way of tracking which emotes have been purchased. Ideally collapsed to a reusable function so you can query it when the user asks for it or your emote selection is brought up. You could grey out non purchased ones. Then just use a Map with emote class and has bought bool, or an array of purchased emotes. Something like that.

  • Then, on button press, get selected emote, which can only be selected if it was bought in the first place, and play the animation.

more ▼

answered Jul 03 '18 at 11:04 AM

avatar image

DanielOrchard
988 17 21 38

avatar image Chad_kroeger2005 Jul 03 '18 at 03:42 PM

thank you I'll try it now

avatar image Chad_kroeger2005 Jul 03 '18 at 04:51 PM

for some reason it's not printing the string when it's supposed to and I have no idea why any ideas?

avatar image Chad_kroeger2005 Jul 03 '18 at 04:55 PM

I might just give up on the idea now it's not working at all :(

avatar image Chad_kroeger2005 Jul 03 '18 at 04:59 PM

I might actually just make it a character shop instead of an emote shop any ideas how I would implement that?

avatar image Chad_kroeger2005 Jul 03 '18 at 05:00 PM

or would it be the same way?

(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