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 create an object that moves upon collision

I am creating a game from the side scroller template and I've been using using the networking tutorial to get multiple clients to spawn bombs at each other. At the moment when a pawn collides with the bomb they reach an impasse. What I would like to do is when anything collides with the bomb object (pawn to bomb or bomb to bomb) then the bomb reacts accordingly. For example if a bomb becomes stationary and a pawn walks up to it and collides then they will both block when in fact I would like to simulate the player kicking it.

Any ideas on which tutorial I can view or what setting I can work with to make this happen?

Thanks.

Product Version: Not Selected
Tags:
more ▼

asked Nov 08 '14 at 10:23 PM in Blueprint Scripting

avatar image

Fighter453
3 1 4

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

1 answer: sort voted first

I think the solution, from what you have described, would be to determine if the bomb is moving. Create a isMoving boolean on the bomb that is (obviously) only true when it's moving. Then, on the players collision event, have it check the bool. If isMoving == True then Bomb hurts player, else, player kicks bomb.

more ▼

answered Nov 10 '14 at 06:33 AM

avatar image

RAVaught
699 44 28 68

(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