For exemple, on the image below, the red square is under the 3d object and I would need it to be projected over it instead. I tried putting the square in a new layer above the one that contains the 3d object but it didn't worked. Also the only way I found to make the 3d object appear under the sprite is to put an higher Z value than the hight of the 3d object which is not practicle. So I would like to know if there's a way to achieve this?
I have tried with 2 different variable instead of signals before, but I couldn't figure out how to make it work since I can only compare the two to each other.
Because of that I would like to know if it's possible to send a signal each time the desired variable changes.
Develop games in your browser. Powerful, performant & highly capable.
You do not have permission to view this post
Is there a way to use sprite.count and simply add an other expression that would make it so it only count the sprites that have the desired variable?
It would be so much simplier if it's possible since I haven't used loops often.
Eg:
I want to set a global variable to the number of sprite that have eg_variable=1
Thanks
Thank you again.
About the Avanced Random plugin, It was what I was using at first but the result where never the same. In short, the number
of sprite affected(for eg.set value to 1) were never constant.
You already helped a lot but I still have an issue. I haven't used loops often and I am completly clueless with using loops and loops-index even tho I tried to figure it out by myself.
So if it doesn't bother you too much, can you please explain how this work with more details:
-Thanks
Thanks, but can i use this to do more than only two variable? So for exemple can I make
35% = 1 , 55% = 2 and the 10 last % = 3 ???
I tried to figure it out by myself but it wasn't conclusive.
eg. I want 30% of my objects to have 1 as their variable and the remaining 70% to have 2.