Hi!
This is not exactly as the title says but comes close.
I have an object that creates another object when it hits a solid. What I want is the new object to have the same angle set (when created) that the father object has. how do I do that?
Develop games in your browser. Powerful, performant & highly capable.
New objects spawned from another object usually inherit the position and angle from the spawning object,
Just in case, you can Sprite->SetAngle to Parent.Angle right after you create it.
Thanks!
yes, it spawned in the same direction.
Just to know: Couldn't find how to use the second option you mentioned. can't find a way to refer to a parent object. Is it through expressions? when i am writing an expression it never suggests the word "parent".
Construct2 does not keep track of which object spawned which other object. If you want that information, you can store it yourself in an instance variable right after you spawn the second object.