Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest WME version: WME 1.9.1 (January 1st, 2010) - download

Author Topic: Change walking animation in some scenes  (Read 2315 times)

0 Members and 1 Guest are viewing this topic.

Javi-Wan Kenobi

  • Supporter
  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 34
    • View Profile
Change walking animation in some scenes
« on: December 26, 2007, 12:00:36 PM »

I have a 2D actor with a default walking animation (walk.sprite), with a delay of 90ms and a movement of 12 pixels for each frame (well, it may change depending on the direction, but that's the idea).
It works great in most scenes, but in some others, the character is very small (scale 10%) and he moves exasperatingly slow.
¿Can I create a faster animation and make the actor use it just in these scenes and, when exiting the scene, return to the default animation?
Or, ¿can I change the delay or movements values of the default animation just for these scenes and, when exiting the scene, return them to the previous values?

I think I can do it with a whole new actor with the fast animations, changing between both actors when entering/exiting the scene, but ¿can I do it without changing the actor?
« Last Edit: December 26, 2007, 01:39:26 PM by Javi-Wan Kenobi »
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Change walking animation in some scenes
« Reply #1 on: December 26, 2007, 02:00:15 PM »

Check the "Actors" chapter in the documentation. You can define several named animation sets and then tell the engine which one should be used for walking animation by setting the actor.WalkAnimName property (this functionality is new in WME 1.8).
« Last Edit: December 26, 2007, 02:03:56 PM by Mnemonic »
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

Javi-Wan Kenobi

  • Supporter
  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 34
    • View Profile
Re: Change walking animation in some scenes
« Reply #2 on: December 26, 2007, 02:28:26 PM »

OK, thanks, I'll check it.
Since it's new in the 1.8 version, I haven't seen it before (I've updated recently)
Logged
 

Page created in 0.297 seconds with 21 queries.