Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/06/23 11:29
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
7 registered members (fairtrader, Quad, miwok, Martin_HH, AndrewAMD, alibaba, dpn), 581 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 3 of 3 1 2 3
Re: Mein Code funktioniert nicht!!! [Re: atari98] #264647
05/07/09 12:30
05/07/09 12:30
Joined: Nov 2008
Posts: 946
T
the_clown Offline
User
the_clown  Offline
User
T

Joined: Nov 2008
Posts: 946
Das ist schön.

Re: Mein Code funktioniert nicht!!! [Re: atari98] #264663
05/07/09 13:10
05/07/09 13:10
Joined: Apr 2009
Posts: 274
atari98 Offline OP
Member
atari98  Offline OP
Member

Joined: Apr 2009
Posts: 274
hahaha


Meine Fun Websiten
www.free4-fun.de.tl

www.gamer-liga-live.de.tl

Meine Game-Projekt Websiten
www.gamer-projects.de.tl
Re: Mein Code funktioniert nicht!!! [Re: atari98] #264667
05/07/09 13:24
05/07/09 13:24
Joined: Nov 2008
Posts: 946
T
the_clown Offline
User
the_clown  Offline
User
T

Joined: Nov 2008
Posts: 946
Entschuldige, ich wollte dich nicht kränken oder so. Es ist nur so, dass du Fragen stellst, die wirklich mit einem tieferen Blick ins Handbuch oder eben in die Workshops beantwortet werden können.
Zur Entschuldigung meinerseits hast du jetzt einen Hilferuf frei, egal was du für eine Frage hast. wink

Re: Mein Code funktioniert nicht!!! [Re: the_clown] #264672
05/07/09 13:33
05/07/09 13:33
Joined: Nov 2008
Posts: 946
T
the_clown Offline
User
the_clown  Offline
User
T

Joined: Nov 2008
Posts: 946
So sollte es jetzt klappen, dass dein Heli animiert wird, wenn du ihn vorher per R-Taste angeschaltet hast.


///////////////////////////////
#include <acknex.h>
#include <default.c>

///////////////////////////////
var motor_an = 0;

function toggle_motor()
{
motor_an = (motor_an == 0);
}

function main()
{


level_load ("homework18.wmb");
wait (2);
vec_set(camera.x,vector(0,-480,1000)); // set a static position for the camera
vec_set(camera.pan,vector(90,-68,0)); // set the correct orientation for the camera

on_r = toggle_motor;
}

var anim_speed;
var motor_an;

action my_car()
{
while (1)




{

if (key_d)
my.pan -= 3*time_step; // decrease the pan angle of the car
if (key_w ) // press and hold the "Space" key to move the car
c_move (my, vector(15*time_step, 0, 0), nullvector, GLIDE);
if (key_a ) // press and hold the "Space" key to move the car
my.pan += 3*time_step; // decrease the pan angle of the car
if (key_cul)
my.roll += 3*time_step; // increase the pan angle of the car
if (key_cur)
my.roll -= 3*time_step; // decrease the pan angle of the car
if (key_cuu ) // press and hold the "Space" key to move the car
my.tilt += 3*time_step; // increase the pan angle of the car
if (key_cud ) // press and hold the "Space" key to move the car
my.tilt -= 3*time_step; // increase the pan angle of the car
// move the car using relative_speed

wait (1);



ent_animate(my, "fly", anim_speed, ANM_CYCLE);
anim_speed += motor_an*4000*time_step;




}
}


Last edited by the_clown; 05/07/09 13:34.
Re: Mein Code funktioniert nicht!!! [Re: atari98] #264812
05/08/09 11:28
05/08/09 11:28
Joined: Apr 2009
Posts: 274
atari98 Offline OP
Member
atari98  Offline OP
Member

Joined: Apr 2009
Posts: 274
Vielen Dank

In English:
Thank´s a lot


Meine Fun Websiten
www.free4-fun.de.tl

www.gamer-liga-live.de.tl

Meine Game-Projekt Websiten
www.gamer-projects.de.tl
Page 3 of 3 1 2 3

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