Can you put attributes in an actor and....
Can you put attributes in a actor ( PLAYER ) and have it say:
when attribute "Player" collides with Actor "T"
Change Attibute T to Attribute T +1
when attribute "Player" collides with Actor "R"
Change Attibute R to Attribute R +1
when attribute "Player" collides with Actor "E"
Change Attibute E to Attribute E +2
when attribute "T" = 1 and
when attribute "R" = 1 and
when attribute "E" = 2
Change Scene to Next Level.
My Player has all the Attributes ( A through Z ) and I dont seem to see why it wont take it to the next scene.
Any help on this would be super!
I hope I make sense here, Im still learning.
Thanks All
when attribute "Player" collides with Actor "T"
Change Attibute T to Attribute T +1
when attribute "Player" collides with Actor "R"
Change Attibute R to Attribute R +1
when attribute "Player" collides with Actor "E"
Change Attibute E to Attribute E +2
when attribute "T" = 1 and
when attribute "R" = 1 and
when attribute "E" = 2
Change Scene to Next Level.
My Player has all the Attributes ( A through Z ) and I dont seem to see why it wont take it to the next scene.
Any help on this would be super!
I hope I make sense here, Im still learning.
Thanks All

Best Answer
-
tatiang Posts: 11,949
You have rules that say if the actor collides with R, change t to t+1; if the actor collides with E, change t to t+1. I don't think that's what you meant to do.New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Answers
So when actor player collides with actor T
Change game.attribute T to 1
When actor player collides with actor R
Change game.attribute R to 1
Then you would be best off having a level rules actor just offscreen that has the rule that when game attributes T, R and E = the values you wish, then change scene.
Watch as you preview your game to see if that actor has the value 000 initially and then 112 after colliding with the player. If it is displaying 536 or something, you know your collision rules aren't working properly.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Kinda wired cause it displayed 0 then when it collides into a letter (Say "T") it goes to 1 but if it then collides into say the "R" then it goes to 2 instead of each letter having its own value.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
it probably needs to say is >or= to
cause if it collided more then once you change to next scene rule is not lounger valid
http://cgorbit.com/images/wp-content/uploads/2012/04/Screen-shot-2012-04-17-at-4.17.20-PM.png
http://cgorbit.com/images/wp-content/uploads/2012/04/Screen-shot-2012-04-17-at-4.18.53-PM.png
http://cgorbit.com/images/wp-content/uploads/2012/04/Screen-shot-2012-04-17-at-4.19.24-PM.png
I am sure someone will something i am not, thanks!
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User