Problems with attributes ! Help!
Thani
Member Posts: 128
Hey guys , I'm working on a project and one of my attributes won't work for some reason .
Its a " Boolean " attribute which is used to launch a ball .
I opened my start actor ( launches ball when clicked ) and plugged ...
#1 Rule , > Actor receives even > Touch > Is pressed .
Then I added a new condition , Attribute > Game > Launch ball attribute > False
Then I added a " Change attribute " to the same rule , Game>Launch ball attribute > Set to true
Then another " Change attribute " to the same rule , ( Start button ) > Color > Alpha > Set to 0
Then opened a new rule
#2 Rule , Attribute > Game > Launch ball attribute > False
Then added a " Change attribute " to the same rule , ( Start button ) > Color > Alpha > Set to 1
Ok For the ball ,
Create new Rule , Attribute > Game>Launch ball attribute > True
Then added a " Change velocity " , Direction is " Expression editor " > 2nd arrow down > Random > Random(120,60) . Speed is 300
I'm not sure if its me for game salad , please help and let me know if I did something wrong
Its a " Boolean " attribute which is used to launch a ball .
I opened my start actor ( launches ball when clicked ) and plugged ...
#1 Rule , > Actor receives even > Touch > Is pressed .
Then I added a new condition , Attribute > Game > Launch ball attribute > False
Then I added a " Change attribute " to the same rule , Game>Launch ball attribute > Set to true
Then another " Change attribute " to the same rule , ( Start button ) > Color > Alpha > Set to 0
Then opened a new rule
#2 Rule , Attribute > Game > Launch ball attribute > False
Then added a " Change attribute " to the same rule , ( Start button ) > Color > Alpha > Set to 1
Ok For the ball ,
Create new Rule , Attribute > Game>Launch ball attribute > True
Then added a " Change velocity " , Direction is " Expression editor " > 2nd arrow down > Random > Random(120,60) . Speed is 300
I'm not sure if its me for game salad , please help and let me know if I did something wrong
Comments