It's me again!^^
Sorry that i cannot handle this by myself!
It's so nice that all of you want to help me. ;-)
I try to use the code for a beginner like me, but it did not work,too! :-(

Errormessage: 'impact event' undeclared identifier
<my.event = impact_event;
>

I think the best is i will show you what i've tried.
By the way...
'I've called my level coast'
...
#include '....c`'
/////////////////////////////////////////////////////////////////////////////////////////////////////

function level_event(STRING* Coast)
{
str_cat(Coast, ".wmb");
level_load(Coast);
wait(3);
str_cmp(Coast, "");
}
action colider()
{
my.emask |= ENABLE_IMPACT;
my.event = impact_event;
set(my,POLYGON);
}

function main ()
{
video_mode = 8; // 1024x768
video_depth = 32; // 32-Bit
video_screen = 1; // 1= Fullscreen

level_event("Coast");

handle = media_loop("rpg.mp3",NULL,60);

Where is my mistake?



Last edited by Deha; 08/05/09 11:55.