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: Add two important features about animations to the WME 1  (Read 14232 times)

0 Members and 1 Guest are viewing this topic.

PetaGames

  • Lurker
  • *
  • Karma: 1
  • Offline Offline
  • Gender: Male
  • Posts: 18
  • WME is Excellent
    • View Profile
Add two important features about animations to the WME 1
« 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
« Last Edit: April 17, 2013, 07:29:26 AM by PetaGames »
Logged

PetaGames

  • Lurker
  • *
  • Karma: 1
  • Offline Offline
  • Gender: Male
  • Posts: 18
  • WME is Excellent
    • View Profile
Re: Add two important features about animations to the WME 1
« Reply #1 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.
Logged

2.0

  • Regular poster
  • ***
  • Karma: 4
  • Offline Offline
  • Posts: 217
    • View Profile
Re: Add two important features about animations to the WME 1
« Reply #2 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.
« Last Edit: April 19, 2013, 01:48:11 PM by 2.0 »
Logged

PetaGames

  • Lurker
  • *
  • Karma: 1
  • Offline Offline
  • Gender: Male
  • Posts: 18
  • WME is Excellent
    • View Profile
Re: Add two important features about animations to the WME 1
« Reply #3 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...
Logged

2.0

  • Regular poster
  • ***
  • Karma: 4
  • Offline Offline
  • Posts: 217
    • View Profile
Re: Add two important features about animations to the WME 1
« Reply #4 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...
« Last Edit: April 20, 2013, 11:49:04 AM by 2.0 »
Logged

PetaGames

  • Lurker
  • *
  • Karma: 1
  • Offline Offline
  • Gender: Male
  • Posts: 18
  • WME is Excellent
    • View Profile
Re: Add two important features about animations to the WME 1
« Reply #5 on: April 19, 2013, 09:13:43 PM »

Thank for your solutions.

My second issue solved.
Logged
 

Page created in 0.101 seconds with 25 queries.