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: Several questions about 3d-animations & StickToRegion method  (Read 1605 times)

0 Members and 1 Guest are viewing this topic.

Dionysius

  • Frequent poster
  • ****
  • Karma: 3
  • Offline Offline
  • Gender: Male
  • Posts: 361
    • View Profile
    • On the Tracks of Dinosaurs
Several questions about 3d-animations & StickToRegion method
« on: February 15, 2008, 05:43:35 AM »

Well, I need some help.
I have this code:
Code: [Select]
  actor.GoToObject(this);
  actor.StickToRegion("pob_reg");
  actor.PlayAnim("open_lug");
  Game.TakeItem("creditCard");
  this.status = 1;
1. The actor sticks to region before that it has come to the object. How to fix this?
2. How to drop the effect of StickToRegion method?
« Last Edit: February 15, 2008, 06:44:30 AM by Dionysius »
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5679
    • View Profile
    • Dead:Code Site
Re: Several questions about 3d-animations & StickToRegion method
« Reply #1 on: February 15, 2008, 08:23:27 AM »

1. The actor sticks to region before that it has come to the object. How to fix this?
I don't think so...

2. How to drop the effect of StickToRegion method?
actor.StickToRegion(null);
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

Dionysius

  • Frequent poster
  • ****
  • Karma: 3
  • Offline Offline
  • Gender: Male
  • Posts: 361
    • View Profile
    • On the Tracks of Dinosaurs
Re: Several questions about 3d-animations & StickToRegion method
« Reply #2 on: February 15, 2008, 08:57:23 AM »

I don't think so...
Maybe... But could you look at my demo.exe? http://z-nsk.ru/demo.zip
Click on the luggage and keep a sharp eye on the actor's feet.
actor.StickToRegion(null);
Thanks!
Logged

Dionysius

  • Frequent poster
  • ****
  • Karma: 3
  • Offline Offline
  • Gender: Male
  • Posts: 361
    • View Profile
    • On the Tracks of Dinosaurs
Re: Several questions about 3d-animations & StickToRegion method
« Reply #3 on: February 15, 2008, 09:15:26 AM »

Well, I solved this problem by triggering event from "open_lug" animation  :)
Logged
 

Page created in 0.605 seconds with 23 queries.