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: opet 3D postavy  (Read 2540 times)

0 Members and 1 Guest are viewing this topic.

kracho

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 22
    • View Profile
opet 3D postavy
« on: August 09, 2005, 05:27:43 PM »

Hm, zasa otravujem. No nic, zaujimalo by ma, ci ide nejak nastavit pre 3d postavy rychlost prehravania frames? Tak ako tomu je u 2d postav. Viem ze to tu uz bolo riesene, ale ani za nic to nemozem najst. A ked tu uz o tom pisem, ako sa da nadefinovat trebars beh pre annu. Chapem, ako zadat animaci, aj ako ju volat, ale chcel by som urobit nieco podobne ako actor.goTo() a sice trebars actor.runTo(). diky moc
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: opet 3D postavy
« Reply #1 on: August 09, 2005, 05:38:47 PM »

Je to zmineno tady: http://forum.dead-code.org/index.php?topic=1040.msg7614#msg7614

Metoda RunTo by vypadala nejak takhle (netestovano):

Code: [Select]
method RunTo(X, Y)
{
  this.WalkAnimName = "run";
  this.Velocity = 100;
  this.GoTo(X, Y);
}

Animace "run" by samozrejme musela byt definovana v definici actora.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

kracho

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 22
    • View Profile
Re: opet 3D postavy
« Reply #2 on: August 10, 2005, 05:24:22 PM »

Ahoj takze moj aktor uz chodi i beha, a tak by som sa chcel podelit o skusenosti.

Takze move.script som priradil mojmu aktorovi. Dalej som urobil vsetko ako napisal Mnemonic, a sice

method RunTo(x, y)
{
  this.WalkAnimName = "run";
  this.Velocity = 200;
  this.GoTo(x, y)
}

vsetko fungovalo, ale ked uz raz postava behala, nechcela zacat chodit, takze bola pravdepodobne zmenena methoda GoTo, kde sa
priradila Walk animace "run". Preto, ak mozem opradit je potreba este vlastnu methodu na chodzu. Pripisal som teda do scriptu
move.script toto:

method GoToMy(x, y)
{
  this.WalkAnimName = "walk";
  this.Velocity = 100;
  this.GoTo(x, y)
}

A v hre uz nepouzijem actor.GoTo(), ale pouzijem actor.GoToMy(), alebo actor.RunTo(). Snad to pomoze aj niekomu inemu.
Logged

kracho

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 22
    • View Profile
Re: opet 3D postavy
« Reply #3 on: August 10, 2005, 05:27:22 PM »

oprava. samozrejme v scripte musi byt za this.GoTo(x,y) bodkociarka  ;D
Logged
 

Page created in 0.026 seconds with 18 queries.