File "game/002charspriteinit.rpy", line 2: expected statement.
layeredimage a->:
This is the code I'm using at the moment.
Code: Select all
layeredimage a:
always:
"a_face"
group left:
attribute ldef default:
"a_left_ldef"
attribute lpose:
"a_left_lpose"
group right:
attribute rdef default:
"a_right_rdef"
attribute rpose:
"a_right_rpose"
group xpress:
attribute flush:
"a_xpress_flush"
group eyes:
attribute open default:
"a_eyes_open"
default True
attribute narrowed:
"a_eyes_narrowed"
group mouth:
attribute d default:
"a_mouth_d"
attribute f:
"a_mouth_f"
- Removing the initial colon (arrow simply faced in the opposite direction)
- Autodefining as many attributes as possible (did nothing)
- Removing the blank lines between sections (did nothing)
- Adding more blank lines between sections (did nothing)
- Copy-pasting text directly from the documentation and switching out the attribute names/filenames (did nothing)
- Turning RenPy on and off again (did nothing)
Edit: The code works perfectly well when I put it into a testing program on its own. Is there some way other RenPy statements could be messing with it?
Edit 2: When placed, along with the rest of the init blocks, at the beginning of the script.rpy file, everything runs just fine. I do not know why, since I specifically isolated 001scriptinit.rpy and 002charspriteinit.rpy to be picked up first as a safety measure, but that's what happens. I've been advised by a family member that this may be a compiling issue? I'd still like to know what specifically caused this, though, since piling everything into script.rpy can't be economical in the long run.