Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (Ayumi, alibaba), 704 guests, and 11 spiders.
Key: Admin, Global Mod, Mod
Newest Members
lorikob361, LucasJoshua, Baklazhan, Hanky27, firatv
19054 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Moving through Objects.. #244203
01/03/09 11:55
01/03/09 11:55
Joined: Nov 2008
Posts: 53
Switzerland (Luzern)
F
flutschi Offline OP
Junior Member
flutschi  Offline OP
Junior Member
F

Joined: Nov 2008
Posts: 53
Switzerland (Luzern)
Hi there,


Since i have my Project in Lite-C.. i can move through certain things, like my door and stuff..

why is this? do i have to set my doors to something that i cant move throuhg that i dont have to in C-Script?

my doors are not models, there are this map entity files..

thanks for answering smile


My System:
Intel Core 2 Duo CPU P8400 @ 2.26 GHz
4 GB Ram
NVIDIA GeForce 9600M GT
32 Bit Windows Vista
***********************************
Gamestudio Pro 7.50 / WED V6.875
Re: Moving through Objects.. [Re: flutschi] #244206
01/03/09 12:10
01/03/09 12:10
Joined: Nov 2007
Posts: 1,032
Croatia
croman Offline
Serious User
croman  Offline
Serious User

Joined: Nov 2007
Posts: 1,032
Croatia
can i see your c_move function?



Ubi bene, ibi Patria.
Re: Moving through Objects.. [Re: croman] #244207
01/03/09 12:14
01/03/09 12:14
Joined: Nov 2008
Posts: 53
Switzerland (Luzern)
F
flutschi Offline OP
Junior Member
flutschi  Offline OP
Junior Member
F

Joined: Nov 2008
Posts: 53
Switzerland (Luzern)
sure thing..

Quote:
action player_move()
{
wait(1);

//That the Model of the Player is invis for the Player..
camera.genius = player;
player = me;

weapon_shoot();

while (player !=NULL)
{
my.move_vec_x = (key_e - key_d)*integer(my.a_rennen_p_speed)*time_step; //vorwaerts, rückwärts
my.move_vec_y = (key_s - key_f)*integer(my.a_strafe_p_speed)*time_step; //strafe links + rechts

player.pan += (-mouse_force.x)*22*time_step;

genickbruch += (mouse_force.y)*11*time_step;

if (key_g)
{
genickbruch = 0;
}

if (genickbruch > 55)
{
genickbruch = 55;
}
else
{
if (genickbruch < -55)
{
genickbruch = -55;
}
}

camera.tilt = 0 + genickbruch;

move_mode = IGNORE_YOU + IGNORE_PASSABLE + IGNORE_PUSH + ACTIVATE_TRIGGER + GLIDE;
ent_move(my.move_vec_x,nullvector);

update_camera();
wait(1);
}
}



My System:
Intel Core 2 Duo CPU P8400 @ 2.26 GHz
4 GB Ram
NVIDIA GeForce 9600M GT
32 Bit Windows Vista
***********************************
Gamestudio Pro 7.50 / WED V6.875
Re: Moving through Objects.. [Re: flutschi] #244211
01/03/09 12:22
01/03/09 12:22
Joined: Nov 2007
Posts: 1,032
Croatia
croman Offline
Serious User
croman  Offline
Serious User

Joined: Nov 2007
Posts: 1,032
Croatia
first of try with c_move function
then try removing ignore_push and be sure that your door ent is not passable.

also you might wanna try creating doors with models, it's easier, at least to me



Ubi bene, ibi Patria.
Re: Moving through Objects.. [Re: croman] #244214
01/03/09 12:30
01/03/09 12:30
Joined: Nov 2008
Posts: 53
Switzerland (Luzern)
F
flutschi Offline OP
Junior Member
flutschi  Offline OP
Junior Member
F

Joined: Nov 2008
Posts: 53
Switzerland (Luzern)
i thought about creating them with models, but in all the tuts i've seen (ok, there are just 2 i've seeen :p ) there were made with this WED (Copy & Paste methode)..

thx, i try it.. let u know about it soon


My System:
Intel Core 2 Duo CPU P8400 @ 2.26 GHz
4 GB Ram
NVIDIA GeForce 9600M GT
32 Bit Windows Vista
***********************************
Gamestudio Pro 7.50 / WED V6.875
Re: Moving through Objects.. [Re: flutschi] #244217
01/03/09 12:35
01/03/09 12:35
Joined: Nov 2007
Posts: 1,032
Croatia
croman Offline
Serious User
croman  Offline
Serious User

Joined: Nov 2007
Posts: 1,032
Croatia
those tuts have been created quite a long time ago. but now i think that models are taking the rule.
more and more people are creating levels out of models only, without blocks and map ents. blocks are getting "old" smile but they can serve it's purpose ofc



Ubi bene, ibi Patria.
Re: Moving through Objects.. [Re: croman] #244229
01/03/09 13:13
01/03/09 13:13
Joined: Nov 2008
Posts: 53
Switzerland (Luzern)
F
flutschi Offline OP
Junior Member
flutschi  Offline OP
Junior Member
F

Joined: Nov 2008
Posts: 53
Switzerland (Luzern)
yeah, now i never worked with c_move before, can u translate my code to c_move?


My System:
Intel Core 2 Duo CPU P8400 @ 2.26 GHz
4 GB Ram
NVIDIA GeForce 9600M GT
32 Bit Windows Vista
***********************************
Gamestudio Pro 7.50 / WED V6.875
Re: Moving through Objects.. [Re: flutschi] #244233
01/03/09 14:07
01/03/09 14:07
Joined: Nov 2007
Posts: 1,032
Croatia
croman Offline
Serious User
croman  Offline
Serious User

Joined: Nov 2007
Posts: 1,032
Croatia
c_move(my.move_vec_x,nullvector, IGNORE_YOU | IGNORE_PASSABLE | IGNORE_PUSH | ACTIVATE_TRIGGER | GLIDE | USE_BOX);

replace your move_mode and ent_move lines with this upper code and try without ignore_push



Ubi bene, ibi Patria.
Re: Moving through Objects.. [Re: croman] #244248
01/03/09 15:52
01/03/09 15:52
Joined: Nov 2008
Posts: 53
Switzerland (Luzern)
F
flutschi Offline OP
Junior Member
flutschi  Offline OP
Junior Member
F

Joined: Nov 2008
Posts: 53
Switzerland (Luzern)
hmm, thx a lot

there is a "me" missing smile

c_move(me,move_vec...); smile


and its still not working smirk

i can move through my door..


My System:
Intel Core 2 Duo CPU P8400 @ 2.26 GHz
4 GB Ram
NVIDIA GeForce 9600M GT
32 Bit Windows Vista
***********************************
Gamestudio Pro 7.50 / WED V6.875
Re: Moving through Objects.. [Re: flutschi] #244258
01/03/09 17:15
01/03/09 17:15
Joined: Nov 2007
Posts: 1,032
Croatia
croman Offline
Serious User
croman  Offline
Serious User

Joined: Nov 2007
Posts: 1,032
Croatia
have you removed the "ignore_push" part
are you sure that your doors are not passable

if that doesnt work you can send me your project folder so i try to fix it



Ubi bene, ibi Patria.
Page 1 of 2 1 2

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

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