Script ...

Posted By: bbn1982

Script ... - 07/02/19 15:51

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

Or the entire script , things go bad when to much text (*--) ++

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

define health,skill1;
define animation, skill2;
define force,skill3;

function walking_robot_ev()
{
if(event_type == event_block)||(event_type == event_entity){my.pan = random(360);wait(1);}
}


action walking_robot
{
my.health = 5;
my.enable_block = on; my.enable_entity = on; my.event = walking_robot_ev;
while(my.health > 0){my.force = 3; ent_move(my.force ,nullvector); my.animation+=3; ent_cycle("walk",my.animation);wait(1);}
}

action player_walk
{
player = me; my.health = 100;
while(my.health > 0){camera.x = my.x; camera.y = my.y; camera.z = my.z; camera.pan = my.pan; wait (1);}
}


function main()
{
level_load("map001.wmb");/*level name , create your own in WED? */
sky_color.red = 0; sky_color.green = 177; sky_color.blue =253;/*sky color*/
video_switch(12,1,1);/* full screen 1920x1080*/
}

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

/B
Posted By: bbn1982

Re: Script ... - 07/03/19 13:26

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

Something!

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

Yeah the filname (the document which the text are in) must be WDL (filename.wdl) for this (my) scripts , to work , i noticed , it isn't possible using WDL in FREE-EDITION , i've also noticed .. i use EXTRA-EDITION...


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

/B
© 2024 lite-C Forums