Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (AndrewAMD, Ayumi, NewbieZorro), 14,141 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
chain enemy #224918
09/01/08 21:54
09/01/08 21:54
Joined: Aug 2008
Posts: 49
V
Vyse220 Offline OP
Newbie
Vyse220  Offline OP
Newbie
V

Joined: Aug 2008
Posts: 49
maybe it's a stupid question, but i don't know how to create chained enemy, like

the other enemy can be killed, but if you kill the head first it destroy the other
I've read about path in the manual, but i haven't used yet, I would like to know how to use it with this type of enemy

thx all for the help laugh

Last edited by Vyse220; 09/01/08 21:54.
Re: chain enemy [Re: Vyse220] #225413
09/04/08 13:40
09/04/08 13:40
Joined: Aug 2008
Posts: 49
V
Vyse220 Offline OP
Newbie
Vyse220  Offline OP
Newbie
V

Joined: Aug 2008
Posts: 49
sorry for the double post, but someone can givve me an idea?
I think i can't just use ent_remove cause i don't know how to tell him to remove that and not all in the level
thx all

Re: chain enemy [Re: Vyse220] #225417
09/04/08 13:53
09/04/08 13:53
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
Espér Offline
Expert
Espér  Offline
Expert

Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
very simple..

the head sais to every chainpart what it has to do..
Part 1 follows the head ( simple if-not-at-this-position-than-go-to-it event ). Part 2 follows 1.. and so on


Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<
Re: chain enemy [Re: Espér] #225478
09/04/08 19:24
09/04/08 19:24
Joined: Aug 2008
Posts: 49
V
Vyse220 Offline OP
Newbie
Vyse220  Offline OP
Newbie
V

Joined: Aug 2008
Posts: 49
I don't really understand what have you say (sorry, my bad english)
But I know how to create enemies following each other, i give theam the same action and put theam one behind other, so while moveing it's like they are following.
My problem is, when the head is destroied the other enemies must die.
So, I don't know how to use the ent_remove
can be created something like this?
ent_remove(me);
ent_remove(enemy1);
ent_remove(enemy2);
but without destroy other enemy action in the level (supposing more enemies in the level)

I don't think I've explained myself, sorry my english >-<

Re: chain enemy [Re: Vyse220] #225485
09/04/08 19:46
09/04/08 19:46
Joined: Sep 2007
Posts: 761
Hrvatska (Croatia ), Slavonski...
cro_games Offline
User
cro_games  Offline
User

Joined: Sep 2007
Posts: 761
Hrvatska (Croatia ), Slavonski...
Yes man you can:

Code:
ENTITY* player_en;
action player_one()
{
player_en = my;
while(my.skill1 == 0)//player_en.skill1
{
wait(1);
}
ent_remove(me);
}

action enemy()
{
while(player_en.skill1 == 0)//player_en.skill1
{
wait(1);
}
ent_remove(me);
}


You need to set "player.skill1" to "1" if you want to remove player and enemy..

Last edited by cro_games; 09/04/08 19:48.

Hello everyone my name is Ivan Mandic from "Frozen pixel studio". wink
-----------------------------------
Homepage: www.fpx-studio.com
e-mail: emu_hunter_1990@hotmail.com
(working on a game engine)
Re: chain enemy [Re: cro_games] #225496
09/04/08 20:03
09/04/08 20:03
Joined: Aug 2008
Posts: 49
V
Vyse220 Offline OP
Newbie
Vyse220  Offline OP
Newbie
V

Joined: Aug 2008
Posts: 49
thx, at the end it's seample laugh
Really thx

Re: chain enemy [Re: Vyse220] #225522
09/04/08 22:48
09/04/08 22:48
Joined: Sep 2007
Posts: 761
Hrvatska (Croatia ), Slavonski...
cro_games Offline
User
cro_games  Offline
User

Joined: Sep 2007
Posts: 761
Hrvatska (Croatia ), Slavonski...
No problem man,any time...


Hello everyone my name is Ivan Mandic from "Frozen pixel studio". wink
-----------------------------------
Homepage: www.fpx-studio.com
e-mail: emu_hunter_1990@hotmail.com
(working on a game engine)

Gamestudio download | 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