if (event_type == event_entity) { vec_set (temp.x, normal.x); vec_normalize (temp.x, 0.05); if (temp.z<0) { temp.z = 0; } //don't move through the ground vec_add(my.x,temp.x); //move -0.05 quants away from you entity } } }
Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy
oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de