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 fix my camera?

So i have this 2D game and i start to the left and i have to get to the right (enter - finish) and when i jump my camera and also my view jumps too and i want the camera to be fixed in the middle of the screen when i jump. Can i do anything about this?

Product Version: UE 4.21
Tags:
more ▼

asked Feb 01 '19 at 03:14 AM in Blueprint Scripting

avatar image

Labrador23
6 1

avatar image Asher.Zhu STAFF Feb 01 '19 at 03:32 AM

Hi Labrador23,

Unreal Engine has provided a series of examples where you can learn how to get things done right. One of them is called Platformer Game which I think has everything you need. You can get it in Epic Games Launcher, under Unreal Engine - Learn tab then navigate to Games Category.

avatar image Labrador23 Feb 01 '19 at 03:53 AM

I didnt know that. Thank you.

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

1 answer: sort voted first

yes, it sounds like your camera is a component, child or somehow connected to your player actor... so when your player moves and jumps, so does (which seems undesirable in your case)

I think what you are looking for is a separate camera, that frames your level. For this, I'd use a CameraActor and place it in your scene. Then I'd bring a reference to it into your Level Blueprint, and use Set View Target With Blend to ensure that this is the camera that UE4 uses. You'll find tutorials on this kind of thing on google..

more ▼

answered Feb 01 '19 at 03:25 AM

avatar image

aNorthStar
938 8 17 20

avatar image Labrador23 Feb 01 '19 at 03:53 AM

And its bad because i post a question about that here or something like this?... Thank you for help.

avatar image aNorthStar Feb 01 '19 at 03:56 AM

its absolutely fine to ask for help here... this is what we do :)

but also definitely make it habit to google and youtube first... often the answers can be found there without having to ask

avatar image Labrador23 Feb 01 '19 at 05:57 AM

I didnt know how to explain my problem properlly and i thought i can find my answer faster here

(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