Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
0 registered members (), 938 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
animation values in animate.wdl #8542
03/24/02 06:21
03/24/02 06:21

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



Hi,

The code below is from the animate.wdl script. If I change the value for "walk" animation it works, but can somebody tell my why it seems unaffected when I change the value for "attack" animation??

code:
  
//@ Animate Vars
var anim_attack_ticks = 16;// time for one attack animation cycle

var anim_stand_ticks = 48; // time for one standing anim cycle
var anim_jump_ticks = 6; // time for one jump animation cycle
var anim_duck_ticks = 8; // time for one duck animation cycle

var anim_walk_dist = 1; // dist per model width per walk cycle
var anim_run_dist = 1.5; // dist per model width per run cycle
var anim_crawl_dist = 0.8; // dist per model width per crawl cycle
var anim_wade_dist = 0.8; // dist per model width per crawl cycle
var anim_swim_dist = 1; // dist per model width per swim cycle

var walk_or_run = 12; // max quants per tick to switch from walk to run animation



Re: animation values in animate.wdl #8543
03/24/02 12:28
03/24/02 12:28
Joined: Sep 2000
Posts: 1,148
Eagle Offline
Serious User
Eagle  Offline
Serious User

Joined: Sep 2000
Posts: 1,148
hi burgs6811
Look for the Vars setup in the animate.wdl this is how I control the
animation speed. The problem is you have to make a seperate one for
your player model or else ALL animation will work at these speeds..
I just make a wdl out of the animation wdl call Player.wld and included
it that the bottom of the main wdl and it worked [Smile]
Here is how I set the Ver's to control it...
--------------------------------------------------------------------------------

//@ Animate Vars
var anim_attack_ticks = 10;// time for one attack animation cycle<<<<<<<THIS ONE!!!

var anim_stand_ticks = 16; // time for one standing anim cycle
var anim_jump_ticks = 6; // time for one jump animation cycle
var anim_duck_ticks = 8; // time for one duck animation cycle

var anim_walk_dist = 1; // dist per model width per walk cycle
var anim_run_dist = 1.5; // dist per model width per run cycle
var anim_crawl_dist = 0.8; // dist per model width per crawl cycle
var anim_wade_dist = 0.8; // dist per model width per crawl cycle
var anim_swim_dist = 1; // dist per model width per swim cycle

var walk_or_run = 12; // max quants per tick to switch from walk to run animation
//>>>>>>>>>>NOTE: the bigger the number the slower the animation plays<<<<<<<<<<

// strings for defining the animation frames
string anim_stand_str,"stand";
string anim_walk_str,"walk";
string anim_run_str,"run";
string anim_duck_str,"duck";
string anim_swim_str,"swim";
string anim_dive_str,"dive";
string anim_jump_str,"jump";
string anim_crawl_str,"crawl";
string anim_wade_str,"walk";

-----------------------------------------------------------------------------------------
remember, the names have to match on both parts!

There is also a way to do it using;
define _ADVANIM_TICK,skill1; // 'tick' related animation
define _ADVANIM_DIST,skill2; // 'dist' related animation
But I haven't figured it out yet!But Useing the
Skill to me would seem like a better way if I
could figure the damn thing out...

I hope this helps [Wink]


in the end its all about the game
Re: animation values in animate.wdl #8544
03/25/02 23:01
03/25/02 23:01

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



OK thanks. So your saying copy that code, make it a function, and call it in the player action you want associated with those values...thanks again.


Moderated by  HeelX, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1