Rules inside of rule? (super newbie question)
wirelesstkd
Member Posts: 75
Hi guys, I've got another super newbie question. I'm still following along in the tutorial for the basic shoot em up game, and there's a rule for the boss ship taking damage and dieing. The manual puts the rule for dieing is inside the rule for taking damage. I'm wondering if it matters if that rule is inside another rule, or if it can exist as its own.
The one thing I've noticed is that the backstage gets cluttered quick, so I've been collapsing every rule as I create it, plus giving each rule a descriptive title.
If I put the rule to kill the boss inside the rule for the boss to take damage, it just seems that it might be harder for me to find later (maybe not with this game, but I'm thinking about more complex games down the line - I'd hate to develop a bad habit now that I have to break later).
On the flip side, I don't know if there are reasons that these two events (boss takes damage on collision with missile and boss dies when game.bosshealth is less than or equal to 0) should be married to each other.
Does either way work, or is there a definitive "best practices" here?
Thanks!
The one thing I've noticed is that the backstage gets cluttered quick, so I've been collapsing every rule as I create it, plus giving each rule a descriptive title.
If I put the rule to kill the boss inside the rule for the boss to take damage, it just seems that it might be harder for me to find later (maybe not with this game, but I'm thinking about more complex games down the line - I'd hate to develop a bad habit now that I have to break later).
On the flip side, I don't know if there are reasons that these two events (boss takes damage on collision with missile and boss dies when game.bosshealth is less than or equal to 0) should be married to each other.
Does either way work, or is there a definitive "best practices" here?
Thanks!
Comments
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Or am I unnecessarily over thinking it? ;-)
Thanks!
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User