Leadwerks Game Engine

Leadwerks Game Engine

Not enough ratings
2D COIN (Rotating ,Pickupable)
   
Award
Favorite
Favorited
Unfavorite
Type: Prefab
File Size
Posted
Updated
1.111 KB
12 Feb, 2016 @ 8:55am
8 Mar, 2016 @ 11:29am
4 Change Notes ( view )

Subscribe to download
2D COIN (Rotating ,Pickupable)

Description
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