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"

Rotating an arrow on keypress?

I'm making a 2D game based of an old favourite: Puzzle Bobble or the more recent Bubble witch saga I'm just having some trouble getting a blueprint that will allow me to rotate my arrow and fire off a bubble.

Product Version: Not Selected
Tags:
more ▼

asked Nov 11 '14 at 04:12 PM in Blueprint Scripting

avatar image

red-xiii
1 1 2 4

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

1 answer: sort voted first

You should be able to apply rotation with the "Add World Rotation" or "Set World Rotation" functions.

You can then use the "Get Forward Vector" function on your actor to get the direction to fire the bubble to.

// EDIT: Screenshots of my pawn movement BPs from my current experimentation project:

alt text

rotateandmove.png (257.5 kB)
more ▼

answered Nov 11 '14 at 09:32 PM

avatar image

Hellcat
96 3 2 7

avatar image red-xiii Nov 12 '14 at 03:38 PM

Would by chance have a screen shot of something similar?

avatar image Hellcat Nov 12 '14 at 04:04 PM

I will make screenshots of my player movement blueprints when I'm back on my "engine PC" later tonight - it's not for 2D, but should work with just very few adjustments.

avatar image Hellcat Nov 12 '14 at 04:51 PM

Added screenshots of my rotate and move BP functions.

The rotate one, well, rotates in my case the pawn mesh according to axis input and the move function first gets "the direction into which the mesh is looking/heading" and then moves the pawn along that vector - I guess in your case you'll want to use that "forward vector" to move the shot bubble instead.

avatar image red-xiii Nov 13 '14 at 11:14 AM

Thanks very much man

(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