Posted By: V_Sola
Empty Pointer - 02/01/09 14:27
Hi, i wrote a code in which i used a Pointer that should tell my player-model to move on w
ENTITY* robot;
function move_ahead()
{
robot.x += 5;
}
function main()
{
video_switch (8,32,1);
level_load ("Drohne_Level.wmb");
on_w = move_ahead;
}
action Drohne()
{
robot = me;
}
, but after i had started the programm
evertime i pressed the engine only told me theres an empty Pointer.
Does anyone know what's my mistake?
Thanks in advance, v_sola.
ENTITY* robot;
function move_ahead()
{
robot.x += 5;
}
function main()
{
video_switch (8,32,1);
level_load ("Drohne_Level.wmb");
on_w = move_ahead;
}
action Drohne()
{
robot = me;
}
, but after i had started the programm
evertime i pressed the engine only told me theres an empty Pointer.
Does anyone know what's my mistake?
Thanks in advance, v_sola.