Wintermute Engine Forum

Wintermute Engine => Technical forum => Topic started by: 2.0 on December 09, 2009, 05:08:44 AM

Title: Entity container question.
Post 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.
Title: Re: Entity container question.
Post by: Mnemonic on December 11, 2009, 01:10:05 PM
Particle emitters don't inherit dimensions from their parent object. You'll need to change the emitter dimensions manually.
Title: Re: Entity container question.
Post by: 2.0 on December 12, 2009, 03:08:17 AM
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.
Title: Re: Entity container question.
Post by: Mnemonic on December 12, 2009, 02:06:11 PM
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.
Title: Re: Entity container question.
Post by: 2.0 on December 12, 2009, 04:09:53 PM
Actually point of question in the following: the parameters of Entities in Entity Container in Window (Scale, Rotate etc) are functional?
Title: Re: Entity container question.
Post by: Mnemonic on December 12, 2009, 04:24:59 PM
No, the container really is just a glue between the user interface and an entity. Only its position matters.