Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by Zheka. 06/20/24 14:26
Lapsa's very own thread
by rki. 06/19/24 11:27
A simple game ...
by VoroneTZ. 06/18/24 10:50
Face player all the time ...
by bbn1982. 06/18/24 10:25
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (RealSerious3D, rvl), 1,187 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
squik, AemStones, LucasJoshua, Baklazhan, Hanky27
19060 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
follow an action #78663
06/19/06 20:51
06/19/06 20:51
Joined: May 2005
Posts: 222
T
tek Offline OP
Member
tek  Offline OP
Member
T

Joined: May 2005
Posts: 222
I would like to know if theres a code for a mdl to follow another mdl ?

for instance I made both a mdl of a scorpion head and one of a scorpion body and I would like for them both to walk at the same speed and same direction.

Re: follow an action [Re: tek] #78664
06/19/06 20:56
06/19/06 20:56
Joined: Aug 2004
Posts: 2,215
I
ISG Offline

Expert
ISG  Offline

Expert
I

Joined: Aug 2004
Posts: 2,215
Uh, what if you gave them both the exact same action and in WED placed the accordingly? May work unless you have some random syntax in your script(s).


Ground Tactics - Coming Soon
Ground Tactics OFFICIAL WEBSITE
Re: follow an action [Re: ISG] #78665
06/19/06 21:15
06/19/06 21:15
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Xarthor Offline
Expert
Xarthor  Offline
Expert

Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Uh the second, what about using ent_create in the first place to create the scorpion head and then using vec_for_vertex or just vec_set to place it while the body is moving?

No offense ISG

Re: follow an action [Re: Xarthor] #78666
06/19/06 21:22
06/19/06 21:22
Joined: Aug 2004
Posts: 2,215
I
ISG Offline

Expert
ISG  Offline

Expert
I

Joined: Aug 2004
Posts: 2,215
Quote:


No offense ISG




None taken, I was thinking more along the lines of simplicity instead of actual coding. Of course that's always a route to take, and would be best probably. But I was just handing out a short and easy fix to the problem as it would/should work just the same.


Ground Tactics - Coming Soon
Ground Tactics OFFICIAL WEBSITE
Re: follow an action [Re: ISG] #78667
06/19/06 21:31
06/19/06 21:31
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Xarthor Offline
Expert
Xarthor  Offline
Expert

Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Nah I rather meant that I quoted your "Uh" to begin my post, thought it was kinda funny. So it wasn't connected to your solution in anyway just to the way you expressed it

Re: follow an action [Re: Xarthor] #78668
06/19/06 21:41
06/19/06 21:41
Joined: Aug 2004
Posts: 2,215
I
ISG Offline

Expert
ISG  Offline

Expert
I

Joined: Aug 2004
Posts: 2,215
Oh hehe, I get it now. I have to admit I'm often times not all here, have my days when I just space out - I'm sure you know what I mean, I'm sure you have those days too.

Anyways hopefully one of these solutions helps you out, if not Thunder told me he would be more than happy to help you out even more Haha...sorry...


Ground Tactics - Coming Soon
Ground Tactics OFFICIAL WEBSITE
Re: follow an action [Re: ISG] #78669
06/19/06 21:44
06/19/06 21:44
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Xarthor Offline
Expert
Xarthor  Offline
Expert

Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
@ISG: yeah lol I know thoses kind of days ... they just happen from time to time

@anybody-who-reads-this:
Sorry for getting off-topic

@tek: Yeah if you still have a question: Do ask ... but do not open a new thread for it, just keep it to this one, if its nothing big

Re: follow an action [Re: Xarthor] #78670
06/19/06 21:46
06/19/06 21:46
Joined: May 2005
Posts: 222
T
tek Offline OP
Member
tek  Offline OP
Member
T

Joined: May 2005
Posts: 222
i figured it out. thanks guys
btw do you know how to make a character not do anything after a morph ?

for example I did a snake body and snake head with the help of Ranman I learned how to when I jump on him like mario, the snake head dissapear and the body MORPHS into a mdl of the snake splashed.
the problem is that I put a script in the snake body that when I touch it I restart the level this is all good but when the snake body morphs into the snake splashed the snake splashed holds the same actions as the body.
for instance when I touch the snake splashed I still restart the level and I dont wnat that
do any of you know how to help ?

Re: follow an action [Re: tek] #78671
06/19/06 21:48
06/19/06 21:48
Joined: May 2005
Posts: 222
T
tek Offline OP
Member
tek  Offline OP
Member
T

Joined: May 2005
Posts: 222
@tek: Yeah if you still have a question: Do ask ... but do not open a new thread for it, just keep it to this one, if its nothing big
.............................................................

im sorry bout that I understand unless its big I ownt open a new thread.

Re: follow an action [Re: tek] #78672
06/19/06 21:50
06/19/06 21:50
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Xarthor Offline
Expert
Xarthor  Offline
Expert

Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Yeah sure I know some help - well I guess

Uhm you probably have a while loop in your snake's action, now don't you?
Ok to make this snake stop reloading the level or whatever, just quit that while loop.
How to do this:
a) instead of while(1) write while(!my.flag1) and set flag1 when the snake was splashed, and put the morph behind the while loop
b) instead of while(1) write while(!my.skill20) //or any other skill + the stuff mentioned at a)

If you do not understand me, which would be understandable for me you could post the action of that snake + the event function where the events are handled or where it morphs to the splashed snake and all that stuff.

Page 1 of 2 1 2

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