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 to gradually increase/decrease camera's Ortho scale?

*2D Platformer

*Beginner with zero coding background

I want the jump button to gradually scale the Camera's Ortho-width view between 2 values rather than instantly switching between them as I press / release the jump button.

This is what I've done so far:alt text

Any help would be appreciated.

Product Version: UE 4.8
Tags:
camera.jpg (163.5 kB)
more ▼

asked Jul 15 '15 at 09:41 PM in Using UE4

avatar image

Nizoo
10 3 2 7

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

1 answer: sort voted first

Hello,

I had this same challenge when attempting to add a zooming feature to a 2D project. My solution was to get the current "Ortho" float value (OrthoWidth) and then add\subtract it from a set float value. That exposed value allows me to change the increments that my zoom moves in (smaller for smooth zoom and less for big jumps). That in turn showed me that I need to add some constraint otherwise I could zoom in or out forever. I then added a comparison for both edges of my Zoom (Out and In limits). I have one check to limit how close the zoom will go and another for how far out it can go. The attached screen shot shows the basic Blueprint. I now can add other events that could instigate a zooming effect by extending this Blueprint.

Good luck - Perkalt text

more ▼

answered Apr 29 '16 at 04:27 PM

avatar image

xPERKx
26 2 2 1

(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