Less taxing way of creating Rules?
TouchTiltGames
Member Posts: 1,162
I'm wondering if there's any way of avoiding having a ton of Rules on an actor that collides with any one of a number of other actors.
For example: You have 10 different objects each of which do different things/have different behaviors when you drop them on 15+ other actors. So instead of creating 10 rules for each 15 actors that could all be spawned on the screen at once, I wondered if there was a less taxing way of doing the same thing? I would use tags but each object is different and I want each Actor that its dropped on to do different things.
Thanks in advance,
shane
For example: You have 10 different objects each of which do different things/have different behaviors when you drop them on 15+ other actors. So instead of creating 10 rules for each 15 actors that could all be spawned on the screen at once, I wondered if there was a less taxing way of doing the same thing? I would use tags but each object is different and I want each Actor that its dropped on to do different things.
Thanks in advance,
shane
Comments
so for main actor collides with tags "collide" etc.
/agrees with beefy
Thanks!
Then copy and paste the enemy actor 15-20 times and put them all on the screen
Hope that helps,
QS
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
Keep in mind... many of my actors have physics (and even visibility) turned off. That's how I was able to get decent performance.
I also think that actors with lots of rules don't perform well. I try to break up rules. Once a scroll bar appears in the actor editor, that's when I start to wonder if there are too many behaviors.
...so maybe it's possible... but most of my actors don't move at the same time... if at all.