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"

Top Down Paper 2D Enemy AI

Hey there, I'm working on a Top Down Perspective, Paper 2D RPG. The game's overworld and characters are made of 8 bit styled sprites.

Basically, I would like an enemy slime to wander around on his own when the player is out of his sight. When the player gets close to the enemy slime, I would like the slime to chase after the player.

I tried watching some tutorials online but they weren't focusing on my specific situation so I made a quick 3 minute video to help describe the specifics of what I'm looking for. (Link listed below) https://www.youtube.com/watch?v=zR7TzPUMQJ8&feature=youtu.be

Thank you in advance, Adam

Product Version: UE 4.19
Tags:
more ▼

asked Jul 26 '18 at 04:32 AM in Using UE4

avatar image

AdamColeJones
6 1 2 4

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

1 answer: sort voted first

I think I found a rough solution on my own. Basically I flipped the tile map 90 degrees on its back and then I added a plane mesh where I wanted the enemy to move around. The navmesh bounds volume doesn't appear to work with tile maps from what I've seen but I'm a noob at UE4 so that shouldn't mean much coming from me.

Also, because the plane mesh is below the tile map, I had to raise the sprite significantly above the capsule component. It still looks the same from my orthographic top down perspective but its a little weird in the viewport.

more ▼

answered Jul 31 '18 at 11:42 PM

avatar image

AdamColeJones
6 1 2 4

(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