• Welcome to the world's largest Chinese hacker forum

    Welcome to the world's largest Chinese hacker forum, our forum registration is open! You can now register for technical communication with us, this is a free and open to the world of the BBS, we founded the purpose for the study of network security, please don't release business of black/grey, or on the BBS posts, to seek help hacker if violations, we will permanently frozen your IP and account, thank you for your cooperation. Hacker attack and defense cracking or network Security

    business please click here: Creation Security  From CNHACKTEAM

Recommended Posts

.脊柱官网http://zh.esotericsoftware.com/:号

.脊柱哔哩哔哩教程地址:https://www.bilibili.com/video/BV18L411J7ZQ?p=2

.脊柱如何播放动画如:骨骼动画骨骼动画;骨骼动画。状态。设置动画(0,动画,循环);

.如何创建动画引用:创建动画参考资源(一个按钮点击就可以搞定了

)p5zbvktqalu4381.png

.如何让一个2D的物体相反,只需要将它的transform.localScale的x设置为-1,物体就相反了,如转变。局部比例=新向量2(-1,1);

.可以通过设置右车身的。速度设置物体的移动速度,列如:

浮动运动=输入. GetAxis(“水平")

如果(移动0)

{

刚体.速度=新矢量2(运动*速度,rigibody.velocity.y)

}

.玩家跳跃的操作,添加刚体,然后给刚体的速度的y轴添加一个值

如:

如果(输入GetButtonDown('Jump '))

{

rigi body。速度=新矢量2(rigi体。速度。x,跳跃速度);

}

.如何给脊柱动画添加完成事件,如下:

publick空集动画(AnimationReferenceAsset动画,布尔循环,浮动时间刻度)

{

脊椎轨迹入口动画入口=骨架动画。状态。SetAnimation(0,动画,循环);

动画入口.完成=动画入口_完成

}

private voidamotionentry _ Complete(Spine .轨道入口跟踪条目)

{

//动画完成事件处理

}

cemfnyar5ou4382.png

dd2se2ikec44383.png

rdm5fhaqe2f4384.png

Link to comment
Share on other sites