Wintermute Engine Forum
Wintermute Engine => Technical forum => Topic started by: 2.0 on December 09, 2009, 05:08:44 AM
-
Hi there.
Making a built-in particle editor for the game I was confronted with such difficulty.
Entity container, which I created in PE-window, has an Entity that hooked Particle Emitter.
When I try to represent Particle Emitter's area (x, y, width, height) by the scaling Entity (entitie's sprite - semi-transparent 1x1 pix, ScaleX = width, ScaleY = height), I have no result.
Is it mean that entities in Entity Container has not working parameters (Scale etc) such as window's controllers (Static etc)?
Thanks.
-
Particle emitters don't inherit dimensions from their parent object. You'll need to change the emitter dimensions manually.
-
Now I've do it manually (by enter digits to Window.Edit object), but for represent PE's area at the screen I've use scalable Window.Button object. One more object, but it's not necessary to create it in case of working Entity's Scale and other parameters.
-
I guess we don't understand each other. What I meant, you need to set the particle emitter dimensions from a script by setting its Width / Height properties. It has zero relation to the object that owns the emitter.
-
Actually point of question in the following: the parameters of Entities in Entity Container in Window (Scale, Rotate etc) are functional?
-
No, the container really is just a glue between the user interface and an entity. Only its position matters.