Evolution prefab like digimon or pokemon | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Evolution prefab like digimon or pokemon

i am searching for a good code to create a monster evole to a bigger one what is the best code to use?

9th May 2018, 7:01 PM
Justin Smallegange
Justin Smallegange - avatar
6 Answers
+ 2
What exactly are you doing? Making a game? An animation for that? etc.. Give us more information to work with. Game: Unreal Engine Unity Animation: Maya LightWork Blender
9th May 2018, 7:25 PM
Fata1 Err0r
Fata1 Err0r - avatar
0
unity3d, maya and blender its just for practicing
9th May 2018, 7:27 PM
Justin Smallegange
Justin Smallegange - avatar
0
once it evolves, why not just destroy the origional and instantiate a new "evolved" prefab?
9th May 2018, 7:44 PM
LordHill
LordHill - avatar
0
how can i put that in c+?
9th May 2018, 7:45 PM
Justin Smallegange
Justin Smallegange - avatar
0
if(evolve){ Instantiate(evolved, new Vector3(transform.position.x, transform.position.y, transform.position.z), Quaternion.identity); Destroy(gameObject); } Something like that maybe
9th May 2018, 7:50 PM
LordHill
LordHill - avatar
0
thanks i will try that
9th May 2018, 8:22 PM
Justin Smallegange
Justin Smallegange - avatar