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"

Restrict the camera on Z Axis in 2D side Scroller

Hi, first off I need to make it clear that I'm a total noob to making games in UE4 so please be very clear and concise in your answers.

I have made a 2d side scroller but need to minimise how much the camera (which is attached to the player) follows the player on the Z axis. I want to still be able to see the floor of the game when the character jumps but if he climbs over a certain height I would like the camera to follow again.

Thanks!

Product Version: UE 4.10
Tags:
more ▼

asked Oct 23 '16 at 10:03 PM in Using UE4

avatar image

bunglebonse
8 1 1

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

1 answer: sort voted first

I was able to get this behavior by setting a minimum Z float and updating the camera's position in my player's Event Tick.alt textalt text

more ▼

answered Aug 11 '17 at 07:04 PM

avatar image

kristianbauer
21 1 1

avatar image bunglebonse Apr 14 '19 at 11:11 PM

Thanks Kristian, sorry for the late reply but I only just saw this now. Better late than never!

(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