Please login or register.

Login with username, password and session length
Advanced search  

News:

IRC channel - server: waelisch.de  channel: #wme (read more)

Author Topic: Clicking on character cause endless walk.  (Read 3053 times)

0 Members and 1 Guest are viewing this topic.

BorisC

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 36
    • View Profile
Clicking on character cause endless walk.
« on: August 13, 2006, 11:58:47 AM »

I have my.x character with walk and idle animations.
This one was made by modifying original. trimity.x
For now my character plays idel when just standing and walk when I click somewhere. So, everything is fine, but...
When I click on myself charancer become walk on same place. And there is no way to stop him.
What I did wrong ?
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Clicking on character cause endless walk.
« Reply #1 on: August 14, 2006, 10:50:14 AM »

It's hard to tell if we don't know what code you're calling when you click the character. What's in the on "LeftClick" {} handler of your actor's script?
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

BorisC

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 36
    • View Profile
Re: Clicking on character cause endless walk.
« Reply #2 on: August 14, 2006, 11:14:39 AM »

It's old tirnity.script as I mentioned before :)
So, for LeftClik we have
on "LeftClick"
{
  actor.PlayAnimChannelAsync(1, "walk");
}

But how to force character to play animation walk when moving by click ?
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Clicking on character cause endless walk.
« Reply #3 on: August 14, 2006, 02:22:05 PM »

Well the "walk" animation is used automatically when the character is walking. I'm not sure what you're trying to achieve with the above code...?
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

BorisC

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 36
    • View Profile
Re: Clicking on character cause endless walk.
« Reply #4 on: August 14, 2006, 03:07:46 PM »

I try to achieve "nothing" when I click on character itself ;)
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Clicking on character cause endless walk.
« Reply #5 on: August 14, 2006, 03:59:02 PM »

Then delete the on LeftClick handler :)
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

BorisC

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 36
    • View Profile
Re: Clicking on character cause endless walk.
« Reply #6 on: August 14, 2006, 04:14:15 PM »

Shame on me ;(
I though this handler calls for animation when I click somewhere ;(
Logged
 

Page created in 0.037 seconds with 19 queries.