Please login or register.

Login with username, password and session length
Advanced search  

News:

Forum rules - please read before posting, it can save you a lot of time.

Author Topic: Glithc or something?  (Read 3535 times)

0 Members and 1 Guest are viewing this topic.

Dan-D

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 89
    • View Profile
Glithc or something?
« on: May 31, 2008, 04:26:59 AM »

So i'm experiencing a glitches. Here's the situation:
After clicking go to next room region actor going half of way and then next scene is loading. After that all other scenes loading that way.
Bug number two is...  I have a stairs in my scene, so if go up stairs to the next scene and immediately go down to the previous scene actor stop doing animation "go up stairs" or "go down stairs" and engine just loading next scene. And after that all scripts behave this way.
Here's the scripts

Stairs go down script
Code: [Select]
#include "scripts\base.inc"

on "LeftClick"
{
   actor.GoTo(816, 598);
   actor.TurnTo(DI_DOWN);
   Game.Interactive = false;
   Scene.FadeOutAsync(1500,0,0,0,255);
   actor.PlayAnim("stairs_dn");
   Game.ChangeScene("scenes\Stairs\Stairs2\Stairs2.scene", false, false);
   actor.UnloadAnim("stairs_dn");
   Game.Interactive = true;
}

on "LeftDoubleClick"
{
   actor.RunTo(816, 598);
   actor.TurnTo(DI_DOWN);
   Game.Interactive = false;
   Scene.FadeOutAsync(1500,0,0,0,255);
   actor.PlayAnim("stairs_dn");
   Game.ChangeScene("scenes\Stairs\Stairs2\Stairs2.scene", false, false);
   actor.UnloadAnim("stairs_dn");
   Game.Interactive = true;
}

Go to next room script
Code: [Select]
#include "scripts\base.inc"

on "LeftClick"
{
  actor.GoTo(-61, 686);
  actor.TurnTo(DI_LEFT);
  Game.ChangeScene("scenes\Stairs\Stairs4\Stairs4.scene", false, false);

}


on "LeftDoubleClick"
{
  actor.RunTo(-61, 686);
  actor.TurnTo(DI_LEFT);
  Game.ChangeScene("scenes\Stairs\Stairs4\Stairs4.scene", false, false);

}

They seems OK to me... but i'm no good scripter so... :)
Help strongly appreciated!
« Last Edit: May 31, 2008, 09:26:28 AM by Dan-D »
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Glithc or something?
« Reply #1 on: May 31, 2008, 11:24:03 AM »

Well I can understand why the "stars_dn" animation is missing after first use. That's because you unload it from memory (actor.UnloadAnim("stars_dn")) and you're probably never loading it again. I'd expect you're getting log errors about missing animation though, are you using the debug console?

As for why the actor isn't walking all the way to door, well, there's probably something in the way (some blocked area) and there aren't enough waypoints to navigate the actor properly.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

Dan-D

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 89
    • View Profile
Re: Glithc or something?
« Reply #2 on: May 31, 2008, 11:54:02 AM »

Yep. Those seems to be the problems! Thank You kind sir! :)
Last problem. I'm using stencil shadows and shadow model seems to be attached to character

And the same goes with legs and torso
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Glithc or something?
« Reply #3 on: June 03, 2008, 10:03:20 AM »

Perhaps the shadow light source is inside the character? Try moving the light to get different results.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

Dan-D

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 89
    • View Profile
Re: Glithc or something?
« Reply #4 on: June 03, 2008, 08:29:29 PM »

No. I tried different positions (from 140, 200, -500 to -40, 200, -40). But shadow still stick to character
Logged
 

Page created in 0.03 seconds with 19 queries.