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
2 registered members (OptimusPrime, AndrewAMD), 14,580 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
Problem with move/trace_mode Syntax #214662
07/06/08 09:21
07/06/08 09:21
Joined: Oct 2007
Posts: 11
U
Usche Offline OP
Newbie
Usche  Offline OP
Newbie
U

Joined: Oct 2007
Posts: 11
Hello 3dGs Community,

I have got a little problem with the Lite-C syntax. A long time I used move_mode for the collison with other objects and the so called "gliding" effect.
But with the new A7 (Trial Version) this syntax seems to be wiped out. I just read something about c_move.

Here is an extract from my code, I hope you can put it into new syntax.


Code:
...
move_mode = IGNORE_YOU + IGNORE_PASSABLE + IGNORE_PUSH + ACTIVATE_TRIGGER + GLIDE;
move_vec[0] = (key_force.y)*6*time;
move_vec[1] = (key_comma - key_period) *3 *time;
...
ent_move(move_vec,NULLVECTOR);


I hope you could understand my non-skilled english smile

- Usche

Re: Problem with move/trace_mode Syntax [Re: Usche] #214663
07/06/08 09:31
07/06/08 09:31
Joined: Nov 2007
Posts: 1,032
Croatia
croman Offline
Serious User
croman  Offline
Serious User

Joined: Nov 2007
Posts: 1,032
Croatia
try with this:

move_mode = IGNORE_YOU + IGNORE_PASSABLE + IGNORE_PUSH + ACTIVATE_TRIGGER + GLIDE;
move_vec[0] = (key_force.y)*6*time;
move_vec[1] = (key_comma - key_period) *3 *time;
...
c_move(move_vec,NULLVECTOR, move_mode);



Ubi bene, ibi Patria.
Re: Problem with move/trace_mode Syntax [Re: croman] #214665
07/06/08 09:57
07/06/08 09:57
Joined: Oct 2007
Posts: 11
U
Usche Offline OP
Newbie
Usche  Offline OP
Newbie
U

Joined: Oct 2007
Posts: 11
Thank you for the quick reply.

with this code below it works much better but I have got another problem now:

Code:
c_move(me,move_vec,NULLVECTOR,IGNORE_YOU + IGNORE_PASSABLE + IGNORE_PUSH + ACTIVATE_TRIGGER + GLIDE);


When my Entity glides to a corner of a Block, it glides into z-direction. so it leaves the level into levelspace.

- Usche

Re: Problem with move/trace_mode Syntax [Re: Usche] #214672
07/06/08 10:58
07/06/08 10:58
Joined: Oct 2003
Posts: 702
Z
zazang Offline
User
zazang  Offline
User
Z

Joined: Oct 2003
Posts: 702
Try var disable_z_glide = 1; in the main() function.
If it does not help then try disable_z_glide = 1; just before c_move line of code.


I like good 'views' because they have no 'strings' attached..
Re: Problem with move/trace_mode Syntax [Re: zazang] #214676
07/06/08 11:36
07/06/08 11:36
Joined: Sep 2003
Posts: 929
Spirit Offline

Moderator
Spirit  Offline

Moderator

Joined: Sep 2003
Posts: 929
"var disable_z_glide = 1" in the main function would just create a local var named "disable_z_glide".

"disable_z_glide = 1" without the "var" in the main function is what you probably meant.

Re: Problem with move/trace_mode Syntax [Re: Spirit] #214709
07/06/08 19:01
07/06/08 19:01
Joined: Oct 2007
Posts: 11
U
Usche Offline OP
Newbie
Usche  Offline OP
Newbie
U

Joined: Oct 2007
Posts: 11
I just noticed the disable_z_glide in the manual but nothing (var disable_z_glide = 1; and disable_z_glide = 1;) helped out. My entity is still running on top of the blocks if it runs into a corner.

- Usche


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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