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
4 registered members (fogman, Grant, AndrewAMD, juanex), 989 guests, and 8 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
walk action #140273
07/10/07 05:18
07/10/07 05:18
Joined: Apr 2007
Posts: 83
prog Offline OP
Junior Member
prog  Offline OP
Junior Member

Joined: Apr 2007
Posts: 83
how to give walk action for dynamically created player(entity).

function startgame()
{
select_panels_off();
level_load(ob_str);
sleep(2);
if (player_captain == male){ent_create(male_mdl,vector(1600, 100, -800),player_walk);}
if (player_captain == female){ent_create(female_mdl,vector(1600, 100, -800),player_walk);}
if (player_captain == lizard){ent_create(lizard_mdl,vector(1600, 100, -800),player_walk);}
if (player_captain == hairy){ent_create(hairy_mdl,vector(1600, 100, -800),player_walk);}
}


in the above code the entity is visible but it is not perfrming walk action.

I want the player to walk, using arrows or WSAD keys.

Re: walk action [Re: prog] #140274
07/10/07 06:43
07/10/07 06:43
Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
tompo Offline
User
tompo  Offline
User

Joined: Mar 2007
Posts: 776
Poor village - Poland ;)
but show us player_walk function...

should look similar to this:

Code:

define anim_speed,skill1;
while(me)
{
my.anim_speed += 5 *time_step;
ent_animate(me,NULL,0,0);
ent_animate(me,"walk",my.anim_speed,anm_cycle);
wait(1);
}




cheers


Never say never.
Re: walk action [Re: tompo] #140275
07/12/07 06:06
07/12/07 06:06
Joined: Apr 2007
Posts: 83
prog Offline OP
Junior Member
prog  Offline OP
Junior Member

Joined: Apr 2007
Posts: 83
Using the above code the entity is walking in the same place as soon as the level loads, but it has to walk(move) when arrows are pressed .


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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