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"

2D Side scroller enemy

So how would I go about making an enemy like a green turtle or something in Mario, one that walks from one spot, then turns around and walks to the other and keeps doing that, There dosen't seem to be any good tutorials on simple paper 2D enemies like that, Unless someone has one thanks!

Product Version: UE 4.8
more ▼

asked Aug 14 '15 at 06:15 PM in Blueprint Scripting

avatar image

40 14 17 20

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

1 answer: sort voted first

In your Enemy BP, create an "EndPoint" Vector variable. Expose this variable and show the 3d widget.

Place your Enemy in the level, define his EndPoint by moving the widget around.

Then the easiest way to do it is to use an "InterptToMovement" component on your Actor and set it up in the construction script like so:


This is basic, the enemy will not jump or whatever, it will just move from point A (where it spawns) to point B (EndPoint).

more ▼

answered Aug 15 '15 at 06:31 AM

avatar image

51 2 4 7

avatar image Jsosnowski1 Apr 24 '16 at 11:27 PM

I was reading your comment and i have a question where did you get the set method?

(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