Leadwerks Game Engine

Leadwerks Game Engine

评价数不足
2D COIN (Rotating ,Pickupable)
   
奖励
收藏
已收藏
取消收藏
Type: Prefab
文件大小
发表于
更新日期
1.111 KB
2016 年 2 月 12 日 上午 8:55
2016 年 3 月 8 日 上午 11:29
4 项改动说明 ( 查看 )

订阅以下载
2D COIN (Rotating ,Pickupable)

描述
Put this at the "Start" function in your Player script:
self.entity:SetKeyValue("type","player")
Also add the following at the top of the script: Script.coins = 0
You CAN add this function to trigger a noise.lua attached to a pivot and attached via flowgraph in your player script.

function Script:PlayPickup()
self.component:CallOutputs("Play")
end