Personally I'm trying to understand what you're after; have I got it right?:
OK, we can turn on and off any rules/group of rules in the editor by clicking the on/off button; you want to turn rules off and on exactly the same but while the game is running?
If that's what you're after, for every behaviour or group of behaviours you want to turn off and on, you'll need a boolean attribute which will act as a switch/toggle.
So, for instance (I'll make this up as I don't know what your actual rules are, of course:
When touch is pressed ---this next bit to add as new--- when Rules1 is true ---- making sure you check the attribute Rules1 in the attributes section to make it true
Change attribute.. Timer: After 30 seconds.. Particles etc
So on-screen, you need a button to switch off those behaviours; in it's rules, put the following:
When touch is pressed --inside the above Rule: when Rules1 is true change attribute to false otherwise change attribute to true
Any other on/offs you want make other booleans: Rules2, Rules3, etc; and put similar in the buttons on-screen
PS I've gone and rejected my own answer! How'd I manage that? Hypnotised by the screen...time I took a break soon... ;-)
Comments
Hi @zefrof
Personally I'm trying to understand what you're after; have I got it right?:
OK, we can turn on and off any rules/group of rules in the editor by clicking the on/off button; you want to turn rules off and on exactly the same but while the game is running?
If that's what you're after, for every behaviour or group of behaviours you want to turn off and on, you'll need a boolean attribute which will act as a switch/toggle.
So, for instance (I'll make this up as I don't know what your actual rules are, of course:
When touch is pressed
---this next bit to add as new--- when Rules1 is true ---- making sure you check the attribute Rules1 in the attributes section to make it true
Change attribute..
Timer: After 30 seconds..
Particles
etc
So on-screen, you need a button to switch off those behaviours; in it's rules, put the following:
When touch is pressed
--inside the above Rule: when Rules1 is true
change attribute to false
otherwise
change attribute to true
Any other on/offs you want make other booleans: Rules2, Rules3, etc; and put similar in the buttons on-screen
PS I've gone and rejected my own answer! How'd I manage that? Hypnotised by the screen...time I took a break soon... ;-)
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
@Gyroscope Thats the dangers of being a sous-chef
Or the benefits.... just think....we can reject ALL of our own answers if we wanted! The power!!!
(No, I don't know what I'm on about either...) :-)
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps