Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 18,561 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Problems in Player's animation! Help please! #11373
12/29/02 12:50
12/29/02 12:50

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



I have a player in a 3rd person game.
The character runs when i press "R" on keyboard, it turns the character faster and change the standard walk animation into a run animation:

if(Key_R==on)
{
player._force=10;//speed up!
force=player._force;
player.frame==0.5*time;//frame rate!
if(player.frame>=14){player.next_frame=11;}
else{player.next_frame=0;}
if(player.frame>=15){player.frame-=4;}//run animation cycle

But when the player animation changes to the run_animation that i made(cycle above), the player's default walk animation interfere and destroys the animation! How i turn off the default walk animation????

Re: Problems in Player's animation! Help please! #11374
01/02/03 12:03
01/02/03 12:03
Joined: Jul 2002
Posts: 1,529
Sudbury, Ontario, Canada
Shummy Offline
Expert
Shummy  Offline
Expert

Joined: Jul 2002
Posts: 1,529
Sudbury, Ontario, Canada
Hers what ive got something that might help you.
If it helps give credti took long tiem to do! thanks.
code:
 

define anims_speed, skill1;

entity* shit;

function do_shit()
{
while(shit == null) { wait(1); }
my = shit;//key to ent movement
shit.anims_speed = 0;//reset

while(1)
{//breakpoint;
ent_cycle("shit",shit.anims_speed);
shit.anims_speed += 1 * time;
if(shit.anims_speed >= 100) { break; }
wait(1);
}
}on_x do_shit;

action shit { shit = me; }

//**END**************************************/




~Shummy Level Designer/Scripts º_º€Lkº_ºBð¥º_Šøƒ†_º [url=http://www.elkboysoftware.cjb.net]www.elkboysoftware.cjb.net[/url] skater_boy29@hotmail.com

Moderated by  HeelX, Spirit 

Gamestudio download | 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