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"

flying coin

Hi,

how can i make a coin when you are very close to them they will fly to the character?

Thanks in advance,

Product Version: Not Selected
Tags:
more ▼

asked Mar 31 '15 at 10:48 PM in Blueprint Scripting

avatar image

quintendc
185 43 58 82

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

1 answer: sort voted first

Make a Collision Sphere around the coin, when character touch the sphere, it will trigger Sphere's OnComponentBeginOverLap on Coin, check if Overlap Actor is Character, create 1 Character Variable and set to the overlap character.

Add a Event Tick in Coin, check if the Character Variable is valid then you move the Coin to the character Location by Vinterp To this will smooth the transition, you can change the speed in InterpSpeed. And check for distance between coin and character, if it close enough then you can do whatever you want there.

Make sure you make coin sphere only overlap with character or pawn, and should not block by anything.

alt text

capture.png (284.4 kB)
more ▼

answered Apr 01 '15 at 01:47 AM

avatar image

Duncan Dam
3.1k 121 50 164

avatar image quintendc Apr 01 '15 at 10:45 AM

thanks for the help

(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