hallo!
ich habe gestern im AUM (welche Nr. weiss ich nicht mehr) folgenden Code gefunden:
TEXT* mymessage_txt =
{
pos_x = 300;
pos_y = 50;
string("Damn! The way is bloked by a big hole in the floor!");
}
action my_obj_blkdway()
{
while (!player) {wait (1);}
while (1)
{
// if the player comes close to the object
if (vec_dist(player.x, my.x) < 100) // play with 100
{
if (key_space)
{
while (key_space) {wait (1);} // wait until the space key is released
set(mymessage_txt, VISIBLE); // and then display the message
wait (-3); // for 3 seconds
reset(mymessage_txt, VISIBLE); // now hide the message
}
}
wait (1);
}
}
so weit so gut, nur wenn ich das Spiel starte kommen einige Errors die diesen Code betreffen, so z.b:
Parameter unknown TEXT* bad keyword in {}
Parameter unknown pos_x bad keyword in {}
Parameter unknown mymessage_txt
Ich hoffe ihr könnt mir helfen und mir sagen was ich da falsch gemacht habe. ich benutze die A7 Extra (nicht A7.7!)
Danke!
EDIT: hmmm i think i got it, i just had to change it from *.wdl to *.c :)) Sorry guys for bother
Last edited by chris_oat; 04/27/09 07:18.