(*--) < ?

Posted By: bbn1982

(*--) < ? - 07/03/19 14:51


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

A WDL-SCRIPT (text must be in a WDL-FILE) > name.wdl < ...

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

define health, skill1; /*changes the name "my.skill1/you.skill1" to "my.health/you.health"*/
define animation , skill2;
define force , skill3;

action animation_test /*change name if have another action , with this name , ain't good having double*/
{
while(1){my.animation+=3;ent_cycle("jump",my.animation); wait(1);} /*to test animations ("jump" animation that is , here , MED?) my.animation = 3 = speed of animation*/
}


action player_walk
{
player = me; /* this is the player*/
while(1){camera.x = my.x; camera.y = my.y; camera.z = my.z; camera.pan = my.pan; wait(1);} /*camera has the same value as player*/
}

action walking_robot /*change name if have another action , with this name , ain't good having double*/
{
my.health = 30; my.animation = 0; /* the health is 30 and restore animation value , while not in loop , otherwise it will forver be > 0 < */
while(my.health > 0)/*while health (my.skill1) is higher then > 0< */ {temp.x = camera.x - my.x; temp.y = camera.y - my.y; temp.z = 0; vec_to_angle(my.pan,temp); my.animation+=0.3;ent_cycle("stand",my.animation);wait(1);} /*rotate my (walking robot) entity towards camera*/
}


function main() /* startup function ...*/
{
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*/
}




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

Needed something to do ..

/B
Posted By: Dooley

Re: (*--) < ? - 07/04/19 04:06

I would recommend learning Lite-c. You may find a lot more options and advice with that language.
© 2024 lite-C Forums