@Chris: Thanks! Regarding the scene check, turns out the action list in the game editor window wasn't up to date. I refreshed it and now I have the right action. :-)
Every time I update Adventure Creator, I lose all my custom tags, layers and sorting layers (the latter of which results in all GameObjects having <unknown layer> for their Sorting Layer) - is this necessary? In addition to the hassle of recreating/reassigning them all after each update, it also breaks my sorting maps.
The easy fix to that is to just not update the tags settings (and input and build settings too). Uncheck them during updating, they're at the bottom of the list. Unity is just dumb about conflict resolution so it bulldozes over any modified files when doing an update. That's not Chris' fault.
Comments
if (GlobalVariables.GetIntegerValue (idvar) == "1") {
@Starcat: I'll look into the splitscreen action for you. The Engine: Check scene Action should look like this:
Assets/Scripts/ChangeColor.cs(66,20): error CS0103: The name `GlobalVariables' does not exist in the current context
Assets/Scripts/ChangeColor.cs(66,39): error CS0131: The left-hand side of an assignment must be a variable, a property or an indexer
if(AC.GlobalVariables.GetIntegerValue (idvar) == "1")
i will throw a party if this script ever works lol
Assets/Scripts/ChangeColor.cs(66,39): error CS0131: The left-hand side of an assignment must be a variable, a property or an indexer
and it would not accept the ==
It's as simple as it can be. If the variable's ID is 23, the line:
if (AC.GlobalVariables.GetIntegerValue (23) == 1)
{
// Do code
}
will work just fine, provided the variable in question is an Integer. The error you posted may be similar in cause to this.
edit: moving to a different thread http://www.adventurecreator.org/forum/discussion/293/playmakerispresent-causes-error#Item_1