I saw your assets on the github link you are using different objects for each color while i have one object which contains different animations with the names
and it has more than 50 of them and more will be added
I saw your assets on the github link you are using different objects for each color while i have one object which contains different animations with the names
and it has more than 50 of them and more will be added
If you want different text on different objects you simply need to add event for that
For example Layer1 is visible and cursor is on objectX or objectZ or objectD
Okay so i tried and it’s not working (pretty sure i have messed it up)
The problem i am facing is first you have 1 Button Inventory I have 11 buttons so i am really confused how to put the events
I tried this but it’s not working
I have tried putting it in the button events but still no results
How can i make it if i have one object with multiple animation?
I didn’t nean to add any confusion with my example. It was just for context. I also confused your code with ZeroX4. Again, sorry.
This is the only section that matters from my previous post. My concept is you have a variable, whatever name you choose. In my example it’sactiveLayer
If you have seperate buttons for the inventory layers then on each button have a corresponding set variable activeLayer to action and use either the layers complete name as a string or in my example just the number.
My test layers were just Layer1, Layer2, Layer3
Then as in my pic:
Cursor is on objectName
ObjectName is in “Layer” + variable activeLayer
If your layers have names instead of numbers than you can save the entire name as a string/text. And then just use the variable instead of adding “Layer”
Cursor is on objectName
ObjectName is in variable activeLayer
In my concept it checks if the layer of the object that the cursor is over is the current active layer meaning it’s visible.
So i tried as you said
I even changed the layer names
gave activeLayer Variable to every button
my event sheet that i am using to turn on of a layers
but still not working
can you please tell me which step i missed or did wrong?
I have no idea what you are missing
You are using expressions instead of actual names in 2nd screenshot
Did you even test if actual names work?
The activeLayer is a scene variable for tracking the active layer. On your buttons like fruit add an action set text of activeLayer = “layerName” where layerName is the name of the only visible layer.
The variable activeLayer is used to make sure the object under the cursor is on the active layer. Everything else gets ignored.
I did tried with the words it didn’t worked but of course it must have been my bad but thank you very much
Thank you very very much it’s finally working you really helped me a lot! Thank you!