Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
MT5 bridge not working on MT5 v. 5 build 4160
by EternallyCurious. 04/25/24 20:49
Trading Journey
by howardR. 04/24/24 20:04
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Scripts not found
by juergen_wue. 04/20/24 18:51
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (wandaluciaia, AndrewAMD, 1 invisible), 765 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 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