Please login or register.

Login with username, password and session length
Advanced search  

News:

For WME related articles and tutorials visit WME Resource Center.

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - vadbag

Pages: 1 ... 3 4 [5]
61
Technical forum / Re: 2 q-s
« on: March 11, 2006, 02:07:22 PM »
Thank you very much!!!!  ::rock ::rock
It works!!!  ;D ;D ;D

62
Technical forum / Re: 2 q-s
« on: March 11, 2006, 01:37:20 PM »
Thank you for your time!  But it still doesn't work, the way I want it to work.

Now the actor stops in the middle of the action  :-\ If, for example I make him walk, at some point he just stops and play the random sprite.  :-[
What I want him to do is to play the random animation only when the actor is in standing position. Perhaps, I should make the script to check whether the actor is in stand.sprite, and then allow the animations to play?  ??? How should I do it?

63
Technical forum / Re: 2 q-s
« on: March 11, 2006, 01:07:53 PM »
Sorry, I'm quite new to wme.  ::) Where do I put the PlayAnimAsync?

Thanks!

64
Technical forum / Thanx
« on: March 11, 2006, 12:48:14 PM »
 ;D ;D ;D
Thank you!!! It works now (I mean the music thing)

Just one more question. There was this thread in the forum: http://forum.dead-code.org/index.php?topic=585.0
So, I put this code:

Code: [Select]
#include "scripts\base.inc"

var IsIdle = false;
var IdleStartTime = 0;

while(true) // endless loop
  {
   if(Game.Interactive == true) // is the actor doing something?
     {
      if(!IsIdle)
         {
          // actor enters idle state
          IsIdle = true;
          IdleStartTime = Game.CurrentTime;
          }
       else if(Game.CurrentTime - IdleStartTime > 5000) // is the actor idle for 5 seconds?
         {
         IdleStartTime = Game.CurrentTime;
         switch(Random(1, 6))
             {
               case 1: actor.PlayAnim("actors\sharik\idle\01\idle.sprite"); break;
               case 2: actor.PlayAnim("actors\sharik\idle\02\idle.sprite"); break;
               case 3: actor.PlayAnim("actors\sharik\idle\03\idle.sprite"); break;
               case 4: actor.PlayAnim("actors\sharik\idle\04\idle.sprite"); break;
               case 5: actor.PlayAnim("actors\sharik\idle\05\idle.sprite"); break;
               case 6: actor.PlayAnim("actors\sharik\idle\06\idle.sprite"); break;
             }
         }
    }
    else IsIdle = false; // actor is busy; set IsIdle to false
    Sleep(100); // wait for 100 milliseconds
 }

It works, but only one time.  :-\ When I make the actor to do something and then again leave him idle he doesn't play those random animations. Is there anything wrong with the code.

Thanx!

65
Technical forum / Video entites, Menu music & Random Idle Animations
« on: March 11, 2006, 01:59:29 AM »
Hi!

1.I've just read this thread: http://forum.dead-code.org/index.php?topic=1077.0
And my question is: How do I actually insert the video as an entity in the scene?

2.I want my game to change to the main theme music when I enter the Main Menu, so I figured out how to do it, but when I want to return to the game the Menu music continues to play! :'( How can I change it back to the music of the scene?
Thanx!

EDITED: Changed the title to a more appropriate one.

Pages: 1 ... 3 4 [5]

Page created in 0.025 seconds with 19 queries.