Gamestudio Links
Zorro Links
Newest Posts
make a complaint
by EW_bytes. 11/26/26 23:00
FXCM => AVA Trade Plugin???
by Martin_HH. 11/25/26 21:59
No connection to MT4
by Martin_HH. 11/23/26 06:38
MinMax function on History t6 file
by LucasJoshua. 11/21/26 14:28
What are you working on?
by rayp. 11/20/26 18:10
contractUpdate() is filtering if >2 rows
by mistery. 11/09/26 12:06
New Zorro version 3.15
by jcl. 11/09/26 09:24
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (EW_bytes), 11,444 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EvanTJ, rht, MaliceTheMaker, Haitao_Ren, JimSimons
19250 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 4 1 2 3 4
WILL SOLVE ENT_VERTEX!!!!! #1243
03/16/01 05:32
03/16/01 05:32

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



Tell me anyone, if you have done this and succeded.

I'm making a segmented character, a legs half and a body half. I need to join them together accurately using ent_vertex. I can stick them together just dandy, untill the character moves.
If the legs move then the body moves with it but lags behind.

My code goes:

code:

ACTION legs { //legs
WHILE(1) {

ACCEL speed,force,friction;
MOVE ME,speed,NULLSKILL;

WAIT 1;

vertexes(); //stick body to legs
}
}


function vertexes() {
ent_vertex(legs_vertex,85);
}


ACTION body { //body
my.x = legs_vertex.x;
my.Y = legs_vertex.Y;
my.Z = legs_vertex.z;
}


I've tried moving things to all different locations in the code, but the body always lags behind. Ive also tried using vec_set to stick the body to the legs (which is ultimately what i want to be able to do) buth this doesn't even attach to body to the legs atall.

//(in body's action):
ent_vertex(body_vertex,432);
//(in legs action in vertexes):
vec_set(body_vertex,legs_vertex);

Can anyone do this without the body lagging?
(and how do you use vec_set?). Whoever can solve this is a god among men. A GOD AMONG MEN!!!!!

------------------
Arg.


Re: WILL SOLVE ENT_VERTEX!!!!! #1244
03/16/01 12:40
03/16/01 12:40
Joined: Jul 2000
Posts: 1,570
Windsor, CT 06095
W
WildCat Offline
Expert
WildCat  Offline
Expert
W

Joined: Jul 2000
Posts: 1,570
Windsor, CT 06095
This is all speculation, but here are some pointers and my two cents:

First off lose the ACCEL command. You will not find it in the current manuals anymore because it is buggy. It is only still in the language to maintain backward compatiblilty with older versions.

Next, I would suggest that you move the "Wait 1" instruction below the "vertexes();" instruction.

The way you have it looks to me like this:
1)compute the speed for the legs
2)move the legs to their new spot
3)draw the frame with the legs in new spot
4)move the body to where the legs are now.
(Notice that the body does not get redrawn here... by the time it gets redrawn at the next wait instruction the legs have already moved on)


Give it a shot. If that doesn't work let me know and I'll see if I can help you out more.

- WildCat


[This message has been edited by WildCat (edited 16 March 2001).]



Visit us at [url=http://www.vertexgames.com]Vertex Games[/url]!
Re: WILL SOLVE ENT_VERTEX!!!!! #1245
03/16/01 17:07
03/16/01 17:07

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



I have the same problem!

why JCL don't implement a function
"DoEvents"
like in VB?
Wait 1; is too slow.
or why a WAIT below 1 doesn't work?

[This message has been edited by Kinex (edited 16 March 2001).]


Re: WILL SOLVE ENT_VERTEX!!!!! #1246
03/17/01 08:41
03/17/01 08:41

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



Thanks for your help wildcat. When are the legs redrawn, does the MOVE command redraw the legs? I tried everything you said, and i tried putting the MOVE at the start of the loop, and i've tried using a move command to move the body as well:

code:

//(in body action)
bodyforce.x = legs_vertex.x - my.x;
bodyforce.Y = legs_vertex.Y - my.y;
bodyforce.Z = legs_vertex.z - my.z;
//[after vertexes() and move legs]
MOVE body_sym,NULLSKILL,bodyforce;

have you ever managed do sync up to objects correctly?

------------------
Arg.


Re: WILL SOLVE ENT_VERTEX!!!!! #1247
03/17/01 02:35
03/17/01 02:35
Joined: Jul 2000
Posts: 1,570
Windsor, CT 06095
W
WildCat Offline
Expert
WildCat  Offline
Expert
W

Joined: Jul 2000
Posts: 1,570
Windsor, CT 06095
Kinex:
The "WAIT" command waits for a screen to be drawn. Why would you ever want to wait for a screen to be drawn part way?

SpaceJim:
Move changes the position of something using collision detection. You will not see the results of a move command until after a wait command has executed.

- W.C.




Visit us at [url=http://www.vertexgames.com]Vertex Games[/url]!
Re: WILL SOLVE ENT_VERTEX!!!!! #1248
03/17/01 03:08
03/17/01 03:08

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



Ah, thanks, but originally the WAIT command was at the end after vertexes() anyway, I just moved it as part of my experimenting, it still makes no difference....

------------------
Arg.


Re: WILL SOLVE ENT_VERTEX!!!!! #1249
03/17/01 03:41
03/17/01 03:41

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



yeah but a
WHILE(1)
cannot be without a wait 1;
why? thats bullshit

Re: WILL SOLVE ENT_VERTEX!!!!! #1250
03/17/01 04:20
03/17/01 04:20

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



Only beginners must use wait() inside while(). According to your forum status you are an expert. So you have now my permission to use while() without wait().

Re: WILL SOLVE ENT_VERTEX!!!!! #1251
03/17/01 16:54
03/17/01 16:54

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



JCL. when i use this code without the wait 1
i get a endless loop in .....

While(1)
{
ent_vertex(playerarm,207); //must be set every frame
wait 1;
}



Re: WILL SOLVE ENT_VERTEX!!!!! #1252
03/17/01 16:57
03/17/01 16:57

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



same error with
continue....

and i'm no expert..

[This message has been edited by Kinex (edited 17 March 2001).]


Page 1 of 4 1 2 3 4

Moderated by  HeelX, Spirit 

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