纳金网

标题: 增加敌人并添加AI 4.2---射击游戏系列教程之四 [打印本页]

作者: 会飞的鱼    时间: 2011-11-21 15:25
标题: 增加敌人并添加AI 4.2---射击游戏系列教程之四

          准备进入下一部分的制作。Firstly we check to see if frameNumber has reached the end of the animation, we then check to see if
         

          the enemy is still close to the player, if we are still close reset the animation to play from the beginning.
         

          But if we are far away from the player go and play our walk animation, keep in mind that previous I
         

          had it set to the stand animation here. If the alien is always walking or meleeing it will never actually
         

          play the stand animation, in this old case the stand animation would have played for one frame before
         

          being set to the walk animation, I changed it back here to the walk animation to make the transition
         

          from the end of the melee animation straight to the walk animation for a better transition.
         

          Now we have enemies that will chase the player and attack near proximity. Right now there is no
         

          damage being applied to the player when this happens, and we could add a bit of a push back that
         

          happens when the enemy hits a player. We will cover these things in a later tutorial. For now our next
         

          tutorial is to add weapons so that the player can shoot and destroy the aliens.
         

          Don't Forget to save your scene Goto > File > Save Scene.
         

          Time to implement projectiles!
         



          uke翻译整理,出处:unity3d8.com
         


作者: C.R.CAN    时间: 2012-2-2 23:28
不错 非常经典  实用

作者: C.R.CAN    时间: 2012-5-8 23:21
很经典,很实用,学习了!

作者: tc    时间: 2012-6-20 23:21
百度的叫度娘,网易的叫易娘,新浪内部还在为是叫新娘还是浪娘而争论不休!……不管你们是企鹅的额娘,豆瓣的伴娘,还是华为的伪娘,都要记得,淘宝才是你们的亲娘啊!亲!!

作者: 晃晃    时间: 2012-7-6 23:24
我就看看,我不说话

作者: 菜刀吻电线    时间: 2012-9-27 23:20
真不错,全存下来了.

作者: tc    时间: 2012-10-4 23:21
跑着去顶朋友滴铁

作者: tc    时间: 2013-2-20 23:22
楼主收集的可真全哦

作者: tc    时间: 2013-2-22 23:28
佩服,好多阿 ,哈哈





欢迎光临 纳金网 (http://go.narkii.com/club/) Powered by Discuz! X2.5