Please login or register.

Login with username, password and session length
Advanced search  

News:

For WME related articles and tutorials visit WME Resource Center.

Author Topic: Entity container question.  (Read 3314 times)

0 Members and 1 Guest are viewing this topic.

2.0

  • Regular poster
  • ***
  • Karma: 4
  • Offline Offline
  • Posts: 217
    • View Profile
Entity container question.
« 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.
« Last Edit: December 09, 2009, 07:13:33 AM by 2.0 »
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Entity container question.
« Reply #1 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.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

2.0

  • Regular poster
  • ***
  • Karma: 4
  • Offline Offline
  • Posts: 217
    • View Profile
Re: Entity container question.
« Reply #2 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.
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Entity container question.
« Reply #3 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.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

2.0

  • Regular poster
  • ***
  • Karma: 4
  • Offline Offline
  • Posts: 217
    • View Profile
Re: Entity container question.
« Reply #4 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?
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Entity container question.
« Reply #5 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.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave
 

Page created in 0.026 seconds with 18 queries.