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"

How can I make my Character rotate in Paper2D

I am brand new to UE4 and I have only watched Epic Game's Paper2d tutorial series. In my game the player character will be a cube (or square since it is Paper 2D). I want the player to be able to press (right or D) to rotate the cube 90 degrees clockwise and the cube will land on one of its faces, and (A or left ) to rotate -90 degrees counter-clockwise. I know how to set up the inputs, but I could not find out how to rotate my character 90 degrees. Any help would be amazing, and screenshots will be helpful. Thank You, -Ravio

Product Version: UE 4.10
Tags:
more ▼

asked Nov 27 '15 at 06:25 PM in Blueprint Scripting

avatar image

ravio
78 9 6 13

avatar image JayWebb Nov 28 '15 at 12:28 PM

How is the player pressing the upper right hand corner - by mouse click or by another actor?

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

3 answers: sort voted first

I thought of that possibility, but this block will attach to other objects and will still need to tilt. So that will not work I did some brainstorming though and wondered if I could apply physics to my Character and whenever the player presses right the upper right corner of the block will gain a massive amount of weight therefore tilting the block. So I was wondering how to apply physics to the player character if I cannot will I have to create a new pawn that I can add weight to? Thank you for the answer and please reply even if you do not know the answer just tell me you do not please. THANK YOU!

more ▼

answered Nov 28 '15 at 08:15 AM

avatar image

ravio
78 9 6 13

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

In paper 2d you will need to create a flipbook. Create a series of sprites when played in sequence, makes it appear it is rotating.

Sample 2d animation

https://commons.m.wikimedia.org/wiki/File:Hexahedron.gif

more ▼

answered Nov 28 '15 at 06:35 AM

avatar image

JayWebb
261 11 3 12

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

I was wondering if the player pressed right I could spawn a actor in the upper right corner behind the block.

more ▼

answered Nov 28 '15 at 08:01 PM

avatar image

ravio
78 9 6 13

(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