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"

Enemy collision sprite/flipbook

Hello,

I'm creating a 2D platformer where the goal is to kill enemies by jumping on their head (I know, not original lol). Anyway, my enemies are created, they're walking around in my level. Now what rests is the collisions with my enemies.

alt text

(this is not how the actual flipbooks look)

I want to create a collision where, if I touch him from the front or back (red area) it damages me, and if I jump on the top (green area) I kill it.

Any suggestions would be greatle appreciated!

Product Version: Not Selected
Tags:
more ▼

asked Aug 10 '14 at 12:34 PM in Blueprint Scripting

avatar image

Penhoat
6 4 11 15

avatar image Penhoat Aug 11 '14 at 02:42 PM

Anyone any ideas?

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

1 answer: sort voted first

You could try making a box component( or whatever shape) and placing it for the body and check for overlapping actors and apply damage (and maybe knockback, but if you figure out how to do knockback please tell me!) and another one for the head that also checks for overlapping actors and destroys the enemy if someone is in it. Doesn't sound too polished maybe there are better solutions but it's a place to start at least!

more ▼

answered Nov 12 '14 at 12:16 PM

avatar image

ZeoZen
54 9 10 11

(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