Question by
AhmedRauf · Jun 23, 2017 at 04:15 AM ·
animationinstantiateprefabprogramming
Animations created in Runtime
Hey guys, so I'm kinda new to unity and i created this field. In this scene what basically happens is that a red ball instantiates where you touch the screen. I managed to get that to work but what I need to add now is an animation that whenever I touch a certain part of the screen the ball originates from the center of the green field and then moves to the location where i touched the screen, preferably with a bounce. I tried multiple things, from MoveTowards and Vector3 lerp to messing around with animations. Anyone know what I should do? Thanks
capture1-1.jpg
(152.2 kB)
capture2.jpg
(80.7 kB)
Comment