Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (ChrstphFr, AndrewAMD, dr_panther), 865 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
enemy leave key? #70780
04/13/06 11:07
04/13/06 11:07
Joined: Mar 2006
Posts: 321
Norway
Eagelina Offline OP
Senior Member
Eagelina  Offline OP
Senior Member

Joined: Mar 2006
Posts: 321
Norway
How do I make a enemy leave key when it is killed?
Kan someone direct me to a good tutorial or page about this?
thanks!


A6 and A7 Commercial
-------------------
Programmer always searching for more to learn and understand. smile
Re: enemy leave key? [Re: Eagelina] #70781
04/13/06 12:55
04/13/06 12:55
Joined: Mar 2006
Posts: 155
3MWe Offline
Member
3MWe  Offline
Member

Joined: Mar 2006
Posts: 155
simply add another script to the enemys action: for example:

action enemy{
robot_01; //the enemys main action
new_action; //the action to lose a key when the enemy is gore spitting and gonna die.
}
action robot_01{ [...] }
action new_action{
while(1){wait(1);
if(my._health<5) //my._health is the health-information of the enemy
{
create... //and so on
}}}


THAT S FUNNY: http://log.thedom.de/images/000508-1.jpg if you don't speak german: Hein = Name mit = with Kartoffeln = Potatos seinen Kumpels = his homies
Re: enemy leave key? [Re: 3MWe] #70782
04/15/06 14:55
04/15/06 14:55
Joined: Mar 2006
Posts: 321
Norway
Eagelina Offline OP
Senior Member
Eagelina  Offline OP
Senior Member

Joined: Mar 2006
Posts: 321
Norway
Thanks I am going to try this code


A6 and A7 Commercial
-------------------
Programmer always searching for more to learn and understand. smile

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