Newbie Question: Incrementing speed each level
chabuhi
Member Posts: 1
I'm just trying out GS for the first time and am wondering how to get an attribute to change when the next level starts.
I've got a "playerSpeed" attribute that is initialized at 200 in level one. I've given the background in level two a Change Attribute command that changes playerSpeed to playerSpeed+600 (just for testing so I can see the difference). When running in test mode, when I switch scenes the playerSpeed remains unchanged. However, when I switch back to the first scene the playerSpeed is boosted as I expected. How do I get the increment to affect the level 2 scene instead of level 1?
Thanks for any help!
Comments
From what you describe it is not being activated before you change scenes. It needs to be in the rule that the Change Scene behaviour is in. Place it just before Change Scene and it will work.
Universal Binary Template - Universal Binary Template Instructions Rev 4 (Short) - Custom Score Display Template
Brilliant - worked! Thank you, colander!