Change table value to equal scene name
RocketBrain
Member, PRO Posts: 269
Is this possible?
So if i name my levels in numerical order. in the change table value instead of specifically saying the row number i put the scene name and voila it chooses the right row automatically.
It'll make level creation easier. I can do without. just want to know if anybody has done it successfully.
Comments
Not sure what you mean by using the Change Table Value...But in the attached project I used the Change Scene at index value (The actor is unlocked on the scene to access the level's name). Is this similar to what you're looking to accomplish?
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
when you use the change table value behavior you have to put in the row, column, and value.
i was wondering if there was an easy way to make the row input equal to the name of the scene. so i could just name the scene "1" and it would automatically use the scene name it was in as the value in that box.
Don't have GS in front of me to check if "Change Table Value" allows attributes in the row input... but if it does, I would make a global attribute names SCENE, then whatever scene you are on create a rule/actor saying Change SCENE attribute to # (whatever scene you're on) right when the scene loads
Ok. So the idea would be the same. In your Change Table Behavior and under the row value, open the expression editor and navigate to: Current Scene/Name. (You can see this in the unlocked actor in the project I supplied.) in order to access the scene name, the actor with the Change Table Behavior must be unlocked on the scene.
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx