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: Turn actor problem  (Read 3817 times)

0 Members and 1 Guest are viewing this topic.

Krosad

  • Anate Studio
  • Occasional poster
  • **
  • Karma: 2
  • Offline Offline
  • Gender: Male
  • Posts: 97
  • anatestudio.com
    • View Profile
    • Anate Studio Web site
Turn actor problem
« on: October 10, 2012, 09:54:39 AM »

Hi, i added turning animation to an actor, but when actor changes direction, a turning animation plays two and more times.

What's the problem?
Logged

Spellbreaker

  • Supporter
  • Frequent poster
  • *
  • Karma: 4
  • Offline Offline
  • Gender: Male
  • Posts: 376
    • View Profile
    • Apeiron Studios
Re: Turn actor problem
« Reply #1 on: October 11, 2012, 06:01:56 PM »

More info. 2D or 3D? And show the actor definition file.
Logged

Krosad

  • Anate Studio
  • Occasional poster
  • **
  • Karma: 2
  • Offline Offline
  • Gender: Male
  • Posts: 97
  • anatestudio.com
    • View Profile
    • Anate Studio Web site
Re: Turn actor problem
« Reply #2 on: October 14, 2012, 04:27:24 PM »

2d actor

Code: [Select]
ACTOR
{
  NAME = "Alex"
  CAPTION=""
  SCALABLE = TRUE
  INTERACTIVE = FALSE
  X = 400
  Y = 460
  SCRIPT="actors\Alex\Alex.script"

  FONT = "fonts\outline_red.font"


  ANIMATION
  {
    NAME       = "idle"
   
    LEFT       = "actors\Alex\ll\stand.sprite"
    RIGHT      = "actors\Alex\rr\stand.sprite"
    UP         = "actors\Alex\uu\stand.sprite"
    DOWN       = "actors\Alex\dd\stand.sprite"

    UP_LEFT    = "actors\Alex\ul\stand.sprite"
    UP_RIGHT   = "actors\Alex\ur\stand.sprite"
    DOWN_LEFT  = "actors\Alex\dl\stand.sprite"
    DOWN_RIGHT = "actors\Alex\dr\stand.sprite"
  } 

  ANIMATION
  {
    NAME       = "walk"
   
    LEFT       = "actors\Alex\ll\walk.sprite"
    RIGHT      = "actors\Alex\rr\walk.sprite"
    UP         = "actors\Alex\uu\walk.sprite"
    DOWN       = "actors\Alex\dd\walk.sprite"

    UP_LEFT    = "actors\Alex\ul\walk.sprite"
    UP_RIGHT   = "actors\Alex\ur\walk.sprite"
    DOWN_LEFT  = "actors\Alex\dl\walk.sprite"
    DOWN_RIGHT = "actors\Alex\dr\walk.sprite"
  }

  ANIMATION
  {
    NAME       = "turnleft"
   
    RIGHT      = "actors\molly\rr\turnleft.sprite"
    UP         = "actors\molly\uu\turnleft.sprite"
    DOWN       = "actors\molly\dd\turnleft.sprite"

    UP_RIGHT   = "actors\molly\ur\turnleft.sprite"
    DOWN_RIGHT = "actors\molly\dr\turnleft.sprite"
  }
 
  ANIMATION
  {
    NAME       = "turnright"
   
    LEFT       = "actors\molly\ll\turnright.sprite"
    UP         = "actors\molly\uu\turnright.sprite"
    DOWN       = "actors\molly\dd\turnright.sprite"

    UP_LEFT    = "actors\molly\ul\turnright.sprite"
    DOWN_LEFT  = "actors\molly\dl\turnright.sprite"
  } 
}

Logged
 

Page created in 0.059 seconds with 24 queries.