Wintermute Engine Forum

Wintermute Engine => Feature requests, suggestions => Topic started by: PetaGames on April 17, 2013, 07:26:25 AM

Title: Add two important features about animations to the WME 1
Post by: PetaGames on April 17, 2013, 07:26:25 AM
Hi Mnemonic and other guys.


I would add two important features to the WME 1:

1 - Add rotation option to the SpriteEdit tools.
   Profit : Create complex animations without the use of many image - Faster performance the games

2 – Add GoTo() , GoToObject , … functions to Entity object.
   Profit : Moving objects to anywhere of scenes dynamically without having to make any pre-defined static animations.



Thanks
Title: Re: Add two important features about animations to the WME 1
Post by: PetaGames on April 19, 2013, 12:38:29 PM
Does anybody have any idea?

Mnemonic , Is it possible that this features be added to the same version of engine technically?

Thanks.
Title: Re: Add two important features about animations to the WME 1
Post by: 2.0 on April 19, 2013, 01:45:01 PM
I thought that is you are going to add them :)
Technically it can be made everything, and not only such improvements.
But I think that much simpler to make all of this by means of scripts.
Title: Re: Add two important features about animations to the WME 1
Post by: PetaGames on April 19, 2013, 07:34:21 PM
I thought that is you are going to add them :)
Technically it can be made everything, and not only such improvements.
But I think that much simpler to make all of this by means of scripts.

What is your scripting solutions about my request?
1- moving a entity to desired point of the scene.

2- how do you implement a animation that contains movement and rotation simultaneously?

thanks...
Title: Re: Add two important features about animations to the WME 1
Post by: 2.0 on April 19, 2013, 07:53:56 PM
1 - very rough ptototype, that moves Actor (and Entity too, when it needed) along a straight line, is here: http://forum.dead-code.org/index.php?topic=5401.msg30467#msg30467
For more complex moving it's need to slightly modify the algorithm, but all within the same script.
Also you can try to use the actor with the one sprite for all animations, for example.

2 - for applying some rotation, when the animation plays some frame, you can use FrameChanged event of the sprite, and check CurrentFrame attribute inside it's handler.
Roughly:

Code: WME Script
  1. on "FrameChanged"
  2. {
  3.   var FrameWhenRotatingBegins = 10;
  4.   var Entity = this.Owner;
  5.  
  6.   if (this.CurrentFrame == FrameWhenRotatingBegins)
  7.     Entity.Rotate = 90;
  8. }


I thought that is you are going to add them :)
Technically it can be made everything, and not only such improvements.
But I think that much simpler to make all of this by means of scripts.

What is your scripting solutions about my request?
1- moving a entity to desired point of the scene.

2- how do you implement a animation that contains movement and rotation simultaneously?

thanks...
Title: Re: Add two important features about animations to the WME 1
Post by: PetaGames on April 19, 2013, 09:13:43 PM
Thank for your solutions.

My second issue solved.