Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (degenerate_762, AbrahamR, AndrewAMD, ozgur), 667 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 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 | 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