Hi, I want to learn how to create cameras like resident evil game.
I've found a real intresting code in the AUM 42 (
link )
I've donwloaded the file from there and copy - paste the file from the advcamera folder to gamestudio/work folder.
The problem is: I don't know what script i have to include, cause the action player_prog is missing.
I've also tryed to create my action
Code:
action pg {
my = player;
while(my){
if (key_cul == on) // press and hold the "Up" arrow key to move
{
my.pan -= 3*time_step;
ent_animate(my, "walk", 5, anm_cycle); // animate the model (use "walk")
}
if (key_cur == on) // press and hold the "Down" arrow key
{
my.pan += 3*time_step;
ent_animate(my, "walk", 5, anm_cycle); // animate the model (use "walk")
}
if (key_cuu == on) // press and hold the "Down" arrow key
{
c_move (my, vector(5, 0, 0), nullvector, glide);
ent_animate(my, "walk", 5, anm_cycle); // animate the model (use "walk")
}
if (key_cud == on) // press and hold the "Down" arrow key
{
c_move (my, vector(-5, 0, 0), nullvector, glide);
ent_animate(my, "walk", 5, anm_cycle); // animate the model (use "walk")
}
}
}
But it doesnt work, the player stay there and doesn't move.
Someone can help me?