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"

Blueprint pawn movement

Hi all, I am fairly new to UE4 and coming from Unity so I can get my head around things in script but I am struggling to get my head around BP.

I would like to achieve the affect of a pawn moving down screen at a constant rate, whilst rotating around its own axis with a randomised side to side ping pong movement.

If that did not make sense, I want the side to side movement from the power ups in this video tutorial: https://www.youtube.com/watch?v=qr4ZjieAQKY&list=PLUvPgeSAn6KgK6jX57Qg02Psy46k2fehF∈dex=9 and the rotation of the powerups in this tutorial: https://www.youtube.com/watch?v=sNueIWCKoco

I am making a small shmup like in the first video I linked, this is really just a learning exercise, but I know this is possible and I am guessing I just don't know the names of the blueprint language I should be looking at.

So far I have this alt text to move the enemy down screen and is working fine. But if I try any of the rotation or side movement everything starts moving around bizarre axis, I would post screens of my attempts to show I am not just begging for someone to finish my work, but I fear I am so far off the mark it would be better to just learn it the correct way from someone :D.

Thanks in advance, I appreciate your time.

Product Version: UE 4.10
movement.png (84.1 kB)
more ▼

asked Dec 29 '15 at 09:55 PM in Blueprint Scripting

avatar image

6 3 4 7

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

1 answer: sort voted first

I'd try looking into using a timeline. You could handle location and rotation each with their own vector track, easily loop if needed. Then you feed those into a SetLocationAndRotation node on the Update exec pin.


more ▼

answered Dec 29 '15 at 10:32 PM

avatar image

66 1 2 8

avatar image iddqdMode Dec 29 '15 at 10:34 PM

Nice, thanks for the quick reply, I shall give that a try now.

(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