Hello everyone,
I have an issue actually with my game and can't figure it out. Maybe my method is not the easiest one for what I want to do but here are the facts:
I have a family object created for each of my enemies name "NME_Top". It's a simple 2d sprite where I can put all my behaviors and instances so I can edit each one easely.
Then for each of my "NME_Top" objects there is a 3d object created over it named "NMETop_3D". It's the same for every "NME_Top", it purpose is only to display the ennemy sprite on the right face. The sprites are in a family named "NME_Top_Sprite"
So first I call a function to create both my 3D object but also the right sprite from the family.
The function itself is quite simple, I set the variables for the 3D object and the sprite object so they can match with the right "NME_Top" object.
Then when the function is called and the 3D object and sprite created, I make the 3D sprite follow the "NME_Top" object and set its right face on the sprite object. Then for every movement, the good animation is played.
Unfortunately, I can't understand why for each 3D object, "NMETop_3D", the same sprite is called. It's a problem because each 3D object is supposed to call the sprite object with the same ID instance I have assigned for both of them.
I guess the main problem is because of the family objects but I'm sure there is a way to make this work.
I'll be glad if anyone knows how I can fix my problem!