also ich fang mal an:
wenn ich den WED starte und eine ganz normale Platte ertselle, und dann ein model einfüge und das model dann mit rechtsklick properties einen action zuweise zB.:
Code:
action player_move
{
player=my; // Ich bin jetzt die Spielfigur --- Now im the Player
my.health =100; // 100 Leben --- 100 Healthpoints
while(my.health > 0) // während meine Lebensenergie grösser als 0 ist... --- while my Healthpoints bigger than 0
{
my.skill2 += time_step*8; //ANM RUN SPEED
my.skill3 += time_step*6; //ANM WALK SPEED FORWARDS
my.skill4 += time_step*3.6; //ANM WALK SPEED BACKWARDS
player_dist.x = (key_pressed(move_forward)*3-key_pressed(move_back))*2*time; //Bewege dich nach Vorne/Hinten mit den Tasten W/S --- Move Forward/Backwards with the Keys "W/S
player.pan +=1* (key_pressed(turn_left)-key_pressed(turn_right))*10*time; //Drehe dich mit den Tasten A/D --- Turn with the Keys A/D
If(key_pressed(42)==1 && key_pressed(17)==1) // Wenn "Shift" und "W" gedrückt wird --- If Key "Shift" and "W" pressed
{
Player_dist.x*=2; //erhöhe die Geschwindigkeit des Spielers um "3*2" --- Increase the Speed of the Movement to "3*2"
ent_animate(me,"Run",my.skill2,anm_cycle); //Spiele die Animation "Run" in einem Animations Zyklus mit der Geschwindigkeit von my.skill2 ab --- Play the Animation "Run" in a cycle with the Speed of my.skill2 Value
}
else
{
If(key_pressed(17)==1) //Wenn "W" gedrückt wird --- If "W" is pressed
{
ent_animate(me,"walk",my.skill3,anm_cycle); //Spiele die Animation "Walk" in einem Animations Zyklus mit der Geschwindigkeit von my.skill3 ab --- Play the Animation Walkin a cycle with the Speed of my.skill3 Value
}
else
{
If(key_pressed(31)==1) // Wenn "S" gedrückt wird --- If "S" Pressed
{
ent_animate(me,"walk",my.skill4,anm_cycle); //Spiele die Animation "Walk" in einem Animations Zyklus mit der Geschwindigkeit von my.skill4 ab --- --- Play the Animation "Walk" in a cycle with the Speed of my.skill4 Value
}
else
{
If(key_pressed(29)==1) //Wenn "STRG" gedrückt wird --- If "CTRL" is pressed
{
ent_animate(me,"attack",my.skill4,anm_cycle);//Spiele die Animation "Attack" in einem Animations Zyklus mit der Geschwindigkeit von my.skill4 ab --- Play the Animation "Attack" in a cycle with the Speed of my.skill2 Value
}
else
{
ent_animate(me,"stand",0,0); // Wenn keine Taste gedrückt wird springe automatisch in die "Stand" Animation --- If no Key pressed jump into the Stand Animation
}
}
}
}
camera_pos(); // Benutze die Camera Function --- Use the Camera Function
c_move(my,player_dist,vector(0,0,-10),glide+ignore_passable); //Hiermit kann ich mich bewegen + Kollision --- Move me + Collision
wait(1); //Warte einen Frame --- Wait one Frame
}
}
//---------------// CAMERA CODE \\-----------------\\
Function camera_pos()
{
camera.genius = player; //Richte mich auf den Spieler --- Look on the Player
camera.x = player.x-200; //Kamera weiter nach hinten ausrichten --- Cam -200 from the Player
camera.y = player.y;
camera.z = player.z+250; //Höhe zwischen Kamera und Spieler --- Height between Player / Cam
camera.tilt = -45; //Kamera Winkel --- Cam Orgin
}
und dann das level lade, starte ich sozusagen nich als model, sondern ihrgendwo in der welt und so zusagen als spectator.
und das model mach ihrgendwelche komische bewegungen.
ich weiß nicht hab ich ihrgendwas vergessen einzustellen?
sry bin ein Anfänger,
schonmal im vorraus Danke