Posted By: JazzDude
model sticks and I'm stuck - 02/22/13 03:46
I need to keep the player from sticking to other entities. I can't use passable. I've tried for hours with vglide, move_friction, enable_entity and a dozen other things but getting nowhere. Here is the part of the player code where I would like to include it:
A6 Commercial.
Please don't refer me to the manual. Nothing I've found there has helped. Thanks.
Code:
while(1) { if(my.mode == mode_move) //move to location target { my.force_x = my.speed * time_step; vec_diff(temp,my.target_x,my.x); vec_to_angle(my.ang_pan,temp); temp_ang.pan = ang(my.ang_pan - my.pan); if(temp_ang.pan > 0) { my.pan += min(my.agility * time_step,abs(temp_ang.pan)); } if(temp_ang.pan < 0) { my.pan -= min(my.agility * time_step,abs(temp_ang.pan)); } ent_animate(my, "walk", my.anim_index, ANM_CYCLE); ent_move(my.force_x,my.force_y); my.anim_index += 7 * time_step; } ... wait(); }
A6 Commercial.
Please don't refer me to the manual. Nothing I've found there has helped. Thanks.