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: WalkToDirection property does not work  (Read 2566 times)

0 Members and 1 Guest are viewing this topic.

Art

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 54
    • View Profile
WalkToDirection property does not work
« on: April 03, 2005, 07:14:19 PM »

Hallo.

I have an entity on the scene. It has several states. In each state it has different bitmap and is located in different position. This entity is also an item, so actor can "take" it.
Before taking this item i make actor GoToObject.
When i change bitmap and position of this entity i also update WalkToX, WalkToY and WalkToDirection properties. With X&Y everything is ok, but WalkToDirection property does not work, like it seems to me :(. It always keeps the value, i gave to it in scene editor.

Here is a little part of code:
var bo4onok = Scene.GetNode( "bo4onok" );
switch( State_09_01_Temnica.bo4onok )
{
case 0:
bo4onok.SetSprite( "scenes\09_Ostronos\01_Temnica\fon\barrel_on_floor.png" );
bo4onok.SkipTo( 702, 434 );
bo4onok.Active = true;
bo4onok.WalkToX = 702;
bo4onok.WalkToY = 519;
bo4onok.WalkToDirection = DI_UPRIGHT;
}

Is it bug or feature ? :)
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: WalkToDirection property does not work
« Reply #1 on: April 03, 2005, 08:31:53 PM »

Um, oops. Yes, it was a bug. I fixed it in my working version, which can be downloaded here: http://dead-code.org/download/wme_latest.zip
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave
 

Page created in 0.04 seconds with 20 queries.