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
1 registered members (AbrahamR), 717 guests, and 4 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
Whats Normal About "Action Command" #139356
07/03/07 18:33
07/03/07 18:33
Joined: Feb 2006
Posts: 126
USA,
manic7creations Offline OP
Member
manic7creations  Offline OP
Member

Joined: Feb 2006
Posts: 126
USA,
Does your player or character do all of their animations when you use the "ACTION COMMAND", is this stuff normal for the "ACTION COMMAND"?

Re: Whats Normal About "Action Command" [Re: manic7creations] #139357
07/03/07 19:07
07/03/07 19:07
Joined: Mar 2007
Posts: 677
0x00000USA
M
MrCode Offline
User
MrCode  Offline
User
M

Joined: Mar 2007
Posts: 677
0x00000USA
Eh?

Do you mean when a model runs through all its animations when there's no action attached to it?

You have to give the model some kind of action behavior in order to stop the animations.


Code:
void main()
{
    cout << "I am MrCode,";
    cout << "hear me roar!";
    system("PAUSE");
}
Re: Whats Normal About "Action Command" [Re: MrCode] #139358
07/03/07 22:16
07/03/07 22:16
Joined: Feb 2006
Posts: 126
USA,
manic7creations Offline OP
Member
manic7creations  Offline OP
Member

Joined: Feb 2006
Posts: 126
USA,
Does my model post to do any kind of animations with this code or not, But my character moves and is animated the whole time with the code below. I have 3DGS 6.6V. Or is there a bug in 3DGS? or Whats What?


/////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////

var video_mode = 7; // 800x600 pixels
var video_depth = 32; // 32 bit mode



////////////////////////////////////////////////////////////////////

string W1_wmb = <W1.wmb>;

////////////////////////////////////////////////////////////////////


function main()
{
fps_max = 30;
level_load (W1_wmb);
wait (3);
camera.x = -12; //set a static position for the camera
camera.y = 740;
camera.z = -2361;
camera.pan = 90; // set the correct orientation for the camera
camera.tilt = -20; // using its pan and tilt angles
}

action cbabe
{
my.fat = off; // the first 3 lines of code
my.narrow = off; // enable the new
c_setminmax(my); // collision detection system used by A6.2 or newer versions
while (1)
{




// move the car using absolute_speed
if (key_cuu == on) // press and hold the "Up" arrow key to move the car
{
c_move(my, nullvector, vector(0, 4, 0), glide);
camera.y += 500;
}
if (key_cud == on) // press and hold the "Down" arrow key to move the car
{
c_move(my, nullvector, vector(0, -4, 0), glide);
camera.y -= 500;
}
if (key_cul == on) // press and hold the "Left" arrow key to move the car
{
c_move(my, nullvector, vector(-4, 0, 0), glide);
camera.x -= 1;
}
if (key_cur == on)// press and hold the "Right" arrow key to move the car
{
c_move(my, nullvector, vector(4, 0, 0), glide);
camera.x += 1;
}





//rightr
if (key_d == on)
{
my.pan += 1; // increase the pan angle of the car
}



if (key_a == on)
{
my.pan -= 1; // decrease the pan angle of the car
}





if (key_space == on) // press and hold the "Space" key to move the car
{
c_move (my, vector(4, 0, 0), nullvector, glide);
}










wait (1);
}
}


//////////////////////////////////////////////////////////////////////////

Last edited by manic7creations; 07/03/07 22:18.
Re: Whats Normal About "Action Command" [Re: manic7creations] #139359
07/03/07 22:46
07/03/07 22:46
Joined: Jan 2003
Posts: 4,615
Cambridge
Joey Offline
Expert
Joey  Offline
Expert

Joined: Jan 2003
Posts: 4,615
Cambridge
o.O your model won't have animations with this code, but i'm still not quite sure what you were intending to ask. could you make it a little bit clearer?

joey.

Re: Whats Normal About "Action Command" [Re: Joey] #139360
07/03/07 23:09
07/03/07 23:09
Joined: Feb 2006
Posts: 126
USA,
manic7creations Offline OP
Member
manic7creations  Offline OP
Member

Joined: Feb 2006
Posts: 126
USA,
Joey, My model does have animations with the code, "but does it post to" with to code sample I provided. I thought you have to program them individual actions individualy right????????????

Last edited by manic7creations; 07/03/07 23:10.
Re: Whats Normal About "Action Command" [Re: manic7creations] #139361
07/03/07 23:17
07/03/07 23:17
Joined: Jan 2003
Posts: 4,615
Cambridge
Joey Offline
Expert
Joey  Offline
Expert

Joined: Jan 2003
Posts: 4,615
Cambridge
correct me but i'm not seeing any code line which animates a model in your sample. normally you're doing that through ent_animate or the like. you're moving it, that's correctly, but i'm pretty sure that's not the point for you posting here. i still don't understand your cited words. what do you mean with "but does it post to" with to code sample? your code doesn't animate the model, if that's what you're asking for. normally, you have to write code for it, that's also correct... but i'm not thinking this'll lead to anything.

i'm really going to help you if i just understood your question... sorry!

joey.

Re: Whats Normal About "Action Command" [Re: Joey] #139362
07/04/07 01:23
07/04/07 01:23
Joined: Feb 2006
Posts: 126
USA,
manic7creations Offline OP
Member
manic7creations  Offline OP
Member

Joined: Feb 2006
Posts: 126
USA,
"your code doesn't animate the model, if that's what you're asking for. normally you have to write code for it, that's also correct"

That is what I am looking for out of you.

Last edited by manic7creations; 07/04/07 01:25.
Re: Whats Normal About "Action Command" [Re: manic7creations] #139363
07/04/07 01:40
07/04/07 01:40
Joined: Mar 2007
Posts: 677
0x00000USA
M
MrCode Offline
User
MrCode  Offline
User
M

Joined: Mar 2007
Posts: 677
0x00000USA
Code:

var walk_speed;
var breath_speed;
var jump_speed;

...

if(key_cuu== on)
{
c_move(my,vector(6 * time_step,0,0),nullvector,glide);
ent_animate(my,"walk",walk_speed,anm_cycle);
walk_speed+= 7 * time_step;
}
else
{
ent_animate(my,"stand",breath_speed,anm_cycle);
breath_speed+= 3 * time_step;
}
if(key_cud== on)
{
c_move(my,vector(-6 * time_step,0,0),nullvector,glide);
ent_animate(my,"walk",walk_speed,anm_cycle);
walk_speed+= -7 * time_step;
}
if(key_cul== on)
{
my.pan+= 10 * time_step;
}
if(key_cur== on)
{
my.pan-= 10 * time_step;
}
if(key_j== on)
{
c_move(my,vector(0,0,15 * time_step),nullvector,glide);
ent_animate(my,"jump",jump_speed,anm_cycle);
jump_speed+= 14 * time_step;
}



Kinda the long way, but this is from an old script of mine, so it's very basic.

But that's how you can walk around with animations (if you already have "jump", "walk", and "breath" as animation scenes).

Hope that clears things up.


Code:
void main()
{
    cout << "I am MrCode,";
    cout << "hear me roar!";
    system("PAUSE");
}
Re: Whats Normal About "Action Command" [Re: MrCode] #139364
07/04/07 14:44
07/04/07 14:44
Joined: Feb 2006
Posts: 126
USA,
manic7creations Offline OP
Member
manic7creations  Offline OP
Member

Joined: Feb 2006
Posts: 126
USA,
Mr Code, I am saying that my compiler doesn't run the code the way it post to.


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