• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
0
Question by mindgrub_rkoch · Nov 24, 2015 at 09:31 PM · 2dtexturestransitionsrepeating

Swapping Textures While Offsetting Them

I am developing a 2D game similar to DoodleJump where the player is a sprite on screen and it jumps vertically from object to object.

The way I have it set up right now is that the camera follows the user up as they jump, stopping at the players maximum height value each time they jump.

For this example lets just say the player is jumping up a tree. What I would like to do is have a tree background texture repeat until the player reaches a certain height, and then transitions to another, different, image of the tree, and then repeat that texture. I would like to continue this until the player reaches a set distance and then show the top of the tree.

I have been able to make an object with a tiled texture on it and just change the offset as the camera moves up, but I cannot figure out how to, once the player hits that height threshold, transition to another image.

Any help would be appreciated, and if something isn't clear, let me know and I'll try and clarify.

Thanks in advanced for all the help.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

47 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Is it possible to prevent atlas calculation at each build ? 0 Answers

Can you tile textures internally in Unity or do you have to tile it in an external application? 0 Answers

Combine 3D and 2D engines 0 Answers

Why is my knockback direction script inconsistent with it's knockback direction? 1 Answer

Find active Child gameobject out of multiple gameobjects 2 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges