RunTime Sprites Change When Click On Button + Unity 5 Tutorial

preview_player
Показать описание
Change the sprite images when click on the buttons...This is very simple and easy tutorial for begineers..

MORE UNITY VIDEOS:-

1). Make Your Own 3D Animation In Unity

2). Make Your Own 2D Animation In Unity

3). Unity 5 Level Design Amazing Tips

4). Infinite Moving Background Unity

5) Unity 2D Raycast Trick

6) Unity 3D Raycast Trick

7) Unity 5 Responsive GUI Tips and Tricks

8) Unity 5 GUI Tutorial Tips

FLAPPY BIRD COMPLETE GAME TUTORIAL UNITY:-

1) Flappy Bird Complete Game Part 1

2) Flappy Bird Complete Game Part 2

3) Flappy Bird Complete Game Part 3

4) Flappy Bird Complete Game Part 4

5) Flappy Bird Complete Game Part 5

PLEASE SUBSCRIBE MY CHANNEL FOR MORE VIDEOS

THANKS

-~-~~-~~~-~~-~-
Please watch: "Unity 3d Car Racing Game Tutorial Part 1 (Setup WheelColliders) "
-~-~~-~~~-~~-~-
Рекомендации по теме
Комментарии
Автор

Thank you very much. It really helped.

ivanaksenov
Автор

Hi, Thanks a lot!!!, It was very helpful for me, Regards from Dominican Republic

fredysoto
Автор

excelente tutorial!!!Me ajudou MT!!!Obrigado consegui entender 100% e fazer a minha versão mt obrigado!!! valeu!!

vitorsouzad
Автор

Good, stuff.

Maybe you can help me with the following:

If I have created a few spites for my game using sprite sheets and Unity's Sprite Editor so they are animated sprites, and I want to switch between them at various times in my game, such as when the enemy changes walking direction or I shoot them and they die (so I'd want to change the sprite/anim to the "falling_down_death" one in this case), how would I go about doing this?

And, if that's really simple for a noob like me to follow--and I really am a noob--then maybe you could also explain [after explaining the first thing on its own nice and simple so I don't get confused] how I could put say the 20 different animated sprites the character is going to use into some kind of "array" and simply be able to tell the game to pick the correct "number" in the "array" that is appropriate for the situation and "swap" it for that new animated sprite? If that makes sense.

The example would be the enemy is using the sprite/anim "walking" initially, then he sees me and starts running at me, so I'd want to change his sprite/anim to "charging", and then I shoot him and he dies, so I'd want to change his sprite/anim to "falling_down_death".

Thanks in advance if you're able to help. :)

inceptional
Автор

not what i expected, but sure a smart way to go about it :D

_Garm_
Автор

hi dude can that also work on animated characters..

jkadhn
Автор

why my (bl.image.sprite = sl[count];) get an error while play - (!: IndexOutOfRangeException: Array index is out of range.)

nadiaerra