- Home /
making menu
so i attached this script to collider which i attached to so logs i made in maya i took a 2d image i made with paint and applied to a plane and put box colliders over the options "pick-up/drop" etc. I made sure that the plane collider/box colliders can go threw the terrain and my character
function OnMouseDown(){
animation.CrossFade("log options");
}
function OnMouseUp(){
animation.CrossFade("log options2");
}
so this is script i made and i am having a few problems with it 1-only lets me play aminations once 2-i have to keep mouse clicked inorder to make them work if i let go stops playing
p.s.-my inventory is also a image which has 28 box colliders in the places were the items will go if you can think of a way to make it reset item's position when pick-up option is clicked please leave a javascript
Your answer
Follow this Question
Related Questions
Can I make animations snap to a frame? 1 Answer
how to navigate through buttons? 1 Answer
Dropdown button... 0 Answers
How to animate a parent object on a button press on a menu 1 Answer
how to show cursor on specific time? 2 Answers