In the 2D Platformer Creation Kit I have been trying to change the background. In the background.script I have added a new else if section for the new background image:
elseif self.type == hash( "mybackground" ) then
msg.post( "#sprite", "play_animation", { id = hash("mybackground") } )
go.set( "#sprite", "scale", vmath.vector3( .666 ) );
msg.post( "#sprite1", "disable" )
msg.post( "#sprite2", "disable" )
msg.post( "#sprite3", "disable" )
In … / framework / sprites I have added a new mybackground.png.
In backgrounds / background.go I have created sprite4 component. In the Properties panel, inside the Default Animation that image does not appear.
What could it be I have misunderstood?