Posted By: Realspawn
Keep sprite faced at the camera. - 07/10/16 17:20
I use this sprite for bullet and it moves as it should to the player
how ever it turns. How can i make the sprite move this way but keep facing the camera. Working on a new tutorial and its the last piece of the puzzle needed
thank you for your time\
how ever it turns. How can i make the sprite move this way but keep facing the camera. Working on a new tutorial and its the last piece of the puzzle needed
thank you for your time\
Code:
action e_bullet() { set(my,BRIGHT); my.emask |= (ENABLE_BLOCK | ENABLE_ENTITY | ENABLE_IMPACT); my.event = ice_hit; c_setminmax(me); VECTOR temp; while(!surfer1){wait(1); } while(1) { c_move(my, vector(-5* time_step, 0, 0), nullvector, NULL | IGNORE_SPRITES | IGNORE_PASSABLE); vec_set(temp, surfer1.x); vec_sub(temp, my.x); vec_to_angle(my.pan , temp); wait(1); } }