Please login or register.

Login with username, password and session length
Advanced search  

News:

Forum rules - please read before posting, it can save you a lot of time.

Author Topic: negative value for scaling  (Read 4091 times)

0 Members and 1 Guest are viewing this topic.

Stucki

  • Frequent poster
  • ****
  • Karma: 0
  • Offline Offline
  • Posts: 325
  • I'm a llama!
    • View Profile
    • Schach-Welten
negative value for scaling
« on: October 12, 2007, 10:22:16 AM »

Hello again.
just working on a scene with some animated trees in the background and got to a new wish ...
could it be done that negative x and y scaling would mirror the entity in dependance from the value. if set to -100 it is mirrored to 100 . if -50 it is mirrored to 50 and so on
so i could make one animation for one tree and use it more often in one scene without having exact copys of it.

what do you think about it....
best regards
stucki

odnorf

  • w00t?
  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 7
  • Offline Offline
  • Gender: Male
  • Posts: 1456
  • Lamp dog!
    • View Profile
Re: negative value for scaling
« Reply #1 on: October 12, 2007, 10:50:50 AM »

Perhaps a MyEntity.Mirror() attribute could be more easily readable in the scripts.
Logged
fl*p

sychron

  • Wanderer zwischen den Welten
  • Global Moderator
  • Regular poster
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 223
  • There is no spoon. The enemy gate is down!
    • View Profile
Re: negative value for scaling
« Reply #2 on: October 12, 2007, 01:42:28 PM »

Just call Entity.Mirror everytime your scaling value reaches 0

If he wants to skale the entity linear from 100 down to 0 down to -100, then the mirror constructs need more code than the simple animation.

I would consider this addon a "useful abuse", for it can be handy in several other solutions, too.

Logged
... delete the inner sleep ...

Stucki

  • Frequent poster
  • ****
  • Karma: 0
  • Offline Offline
  • Posts: 325
  • I'm a llama!
    • View Profile
    • Schach-Welten
Re: negative value for scaling
« Reply #3 on: October 15, 2007, 08:55:11 AM »

Hi Jan,
what do you think about it ??

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: negative value for scaling
« Reply #4 on: October 15, 2007, 06:17:11 PM »

A mirror attribute for entities would be nice. Although more complicated than it seems.
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.04 seconds with 20 queries.