Hi all,
I want 6 game cards to come to screen kinda like flying or like 6 cars follow each other and hit like traffic chain accident. (Instead of showing them all I just want some fun)
Is there any code piece you have that you can share for it?
I’d suggest learning a tweening asset such as leantween or dotween, both are free on the asset store and help setup these sorts of things. Nobody can share code with you because we aren’t in your head and have no way of knowing what your exact look and setup would be.
But if you try something out and get stuck, come back and we can help tell you what is going wrong or help you adjust your code to get the look you want.
Great answer, what should I need more…
This… the effort you spend getting comfy with a tweener like this will pay huge dividends whenever you need to move stuff around in Unity3D. Same goes for simple animations. Tweening and animation will get you out of a lot of really annoying coding and fiddling when you just wanna make some stuff wiggle or slide.
Just to share,
I love programmers who know what they do.
I tried dotween and lean one and someothers,
But check this out very simple solution
Note: Interestingly the tween solution above didn’t work with UI elements.
However, Dotween worked like a charm. (Also as far as I’ve seen Dotween is professional recommended)
I mean, use what you want. I use leantween myself because it’s pretty straight forward. I have no reason to switch. If you don’t like it, don’t use it. If you want to write it out yourself using lerps, feel free. I use a tweening system because my time is better spent elsewhere vs worrying about animating some gui or whatever.
Nice thing about programming is there are many ways to approach things, as you learn you’ll figure out what works best for you.
Interestingly the tween solution I recommended didn’t work with UI elements.
DOTWEEN, I liked it very much.