Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
5 registered members (Nymphodora, AndrewAMD, TipmyPip, Quad, Imhotep), 824 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
(*--) < ? #477511
07/03/19 14:51
07/03/19 14:51
Joined: Jun 2018
Posts: 29
B
bbn1982 Offline OP
Newbie
bbn1982  Offline OP
Newbie
B

Joined: Jun 2018
Posts: 29

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

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

Re: (*--) < ? [Re: bbn1982] #477516
07/04/19 04:06
07/04/19 04:06
Joined: May 2005
Posts: 868
Chicago, IL
Dooley Offline
User
Dooley  Offline
User

Joined: May 2005
Posts: 868
Chicago, IL
I would recommend learning Lite-c. You may find a lot more options and advice with that language.


Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1