Please login or register.

Login with username, password and session length
Advanced search  

News:

This forum provides RSS feed. To query recent posts use this url. More...


Author Topic: Possible bug ?  (Read 2805 times)

0 Members and 1 Guest are viewing this topic.

Mac

  • Supporter
  • Regular poster
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 136
    • View Profile
    • Homepage
Possible bug ?
« on: August 18, 2005, 08:47:55 PM »

I had problems with WME crashing while changing between some new scenes. I spend some time to figure out what's wrong. Now I found it but I can not explain myself why there was a bug.

This is the old object script of a door to another room (that one crashed occasionaly):
Code: [Select]
#include "scripts\base.inc"


////////////////////////////////////////////////////////////////////////////////
on "LeftClick"
{
  actor.GoToObject(this);
}


////////////////////////////////////////////////////////////////////////////////
on "LeftDoubleClick"
{
  actor.GoToObject(this);
  actor.PlayAnimAsync("actors\looky\uu\take1short.sprite");
  Sleep(300);
  Game.ChangeScene("scenes\skintop_wohnzimmer\skintop_wohnzimmer.scene");
}


////////////////////////////////////////////////////////////////////////////////
on "RightClick"
{
  actor.GoToObject(this);
  Game.Interactive=false;
   actor.Talk("Eine Tür.");
  Game.Interactive=true;
}


My aim was to let him go to the door and while he grabs it fade the scene out and change it.


This is what I had to change it to, to make it work (doesn't crash anymore, changing scenes for half an hour now):
Code: [Select]
#include "scripts\base.inc"


////////////////////////////////////////////////////////////////////////////////
on "LeftClick"
{
  actor.GoToObject(this);
}


////////////////////////////////////////////////////////////////////////////////
on "LeftDoubleClick"
{
  actor.GoToObject(this);
  actor.PlayAnim("actors\looky\uu\take1short.sprite");
  Game.ChangeScene("scenes\skintop_wohnzimmer\skintop_wohnzimmer.scene");
}


////////////////////////////////////////////////////////////////////////////////
on "RightClick"
{
  actor.GoToObject(this);
  Game.Interactive=false;
   actor.Talk("Eine Tür.");
  Game.Interactive=true;
}



Is it not possible to let the actor play an animation while the scene changes ?

Regards
Mac
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Possible bug ?
« Reply #1 on: August 18, 2005, 09:07:18 PM »

Hm, I'll look into it, it definitely shouldn't crash.
« Last Edit: September 07, 2005, 09:50:58 PM by Mnemonic »
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.13 seconds with 23 queries.