Wenn sich im Code vom Workshop nichts verändert hat, seit ich ihn durchgemacht habe, lässt sich derartiges dort eh nicht finden. Für eine Beschleunigung wird noch eine Variable gebraucht. Hab mal den Code von workshop 18 entsprechend geändert (rotes wurde geändert):

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

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

var speed=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
}

action my_car()
{
while (1)
{
// move the car using relative_speed
if (key_a)
my.pan += 3*time_step; // increase the pan angle of the car
if (key_s)
my.pan -= 3*time_step; // decrease the pan angle of the car
if (key_space && speed<10) // wenn die Leertaste gedrückt und speed kleiner als 10 ist
speed+=1*time_step; // erhöhe Speed
else // sonst
if(speed>0) //solange speed grösser als null ist
speed -= 3 * time_step; // vermindere speed


c_move (my, vector(speed*time_step, 0, 0), nullvector, GLIDE); // bewege das Auto abhängig von speed


wait (1);
}
}


Hilf mir, dir zu helfen!