-2
\$\begingroup\$

I have 4 images that I made in photoshop that represent the progress the player is making in the game. When you finish the first level the image changes, when you finish the second level changes again, and so on.

But I have no idea how to make that work. So anything helps. Thank you

\$\endgroup\$
  • 2
    \$\begingroup\$ What have you tried so far? How do you know when a level is finished? Do you store this information somewhere? In a file maybe? I downvoted because no attempt was made \$\endgroup\$ – Hellium Nov 13 '17 at 8:21
  • \$\begingroup\$ @Hellium also, if someone knows how to change a sprite from code and they know how to recognize when a player "finished the current part of the level", it should be simple to combine them. \$\endgroup\$ – John Hamilton Nov 13 '17 at 10:11
1
\$\begingroup\$

To accomplish this we need to use what's called Image, which is a 2d sprite that we render for our ui:https://docs.unity3d.com/ScriptReference/UI.Image.html One way you coul make this work in a scrilt is by having a list of all the images that you created in photoshop, and then just switch the sprite of the object with one of the images from the list

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.