Posted By: Dega
3d zelda based game - 08/11/12 20:48
I am trying to make a game where you are a guy with a sword that swings around in front of the characters hand. I cannot figure out how to create the sword at the right spot(the players hand) and follow the player's pan while it is not deleted yet. May I have some tips or example with this code? I really don't know where to start.
Code:
action sword() { var percent; var sword_life_timer = 10; while(1) { percent += 0; ent_animate(player,"atk",percent,NULL); sword_life_timer -= 1 * time_step; if (sword_life_timer <= 0) { ent_remove(me); return; } wait(1); } }