Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Character sprites not showing on stage #15622

Closed
HuniLuxe opened this issue Oct 3, 2024 · 0 comments
Closed

Character sprites not showing on stage #15622

HuniLuxe opened this issue Oct 3, 2024 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@HuniLuxe
Copy link

HuniLuxe commented Oct 3, 2024

Describe your problem here.

so none of the character sprites load in when using the stage, i had just put together this stage and it looked fine in the editor:
ex1
but when i used it in-game, none of the character sprites are there:
ex2
i had checked both the lua and json but both looked fine but maybe i missed something

{
	"camera_boyfriend": [
		100,
		-50
	],
	"_editorMeta": {
		"boyfriend": "bf",
		"gf": "gf",
		"dad": "dad"
	},
	"boyfriend": [
		903,
		-37
	],
	"girlfriend": [
		298,
		-165
	],
	"isPixelStage": false,
	"objects": [
		{
			"x": -1608,
			"y": -1321,
			"scale": [
				1.5,
				1.5
			],
			"image": "checker",
			"flipX": false,
			"filters": 3,
			"color": "FFFFFF",
			"angle": 0,
			"name": "sprite2",
			"antialiasing": false,
			"flipY": false,
			"scroll": [
				1.15,
				1.15
			],
			"alpha": 1,
			"type": "sprite"
		},
		{
			"x": -1130,
			"y": -994,
			"scale": [
				1.15,
				1.15
			],
			"image": "platform",
			"flipX": false,
			"filters": 3,
			"color": "FFFFFF",
			"angle": 0,
			"name": "sprite1",
			"antialiasing": true,
			"flipY": false,
			"scroll": [
				1.05,
				1.05
			],
			"alpha": 1,
			"type": "sprite"
		},
		{
			"type": "gf"
		},
		{
			"type": "dad"
		},
		{
			"type": "boyfriend"
		}
	],
	"camera_girlfriend": [
		50,
		0
	],
	"defaultZoom": 0.4,
	"camera_speed": 0.5,
	"directory": "week1",
	"opponent": [
		28,
		-37
	],
	"camera_opponent": [
		-50,
		-50
	],
	"hide_girlfriend": false
}

function onCreate()
	makeLuaSprite('checker', 'checker', -883, -687);
	scaleObject('checker', 1, 1);
	setScrollFactor('checker', 1, 1);
	setProperty('checker.antialiasing', true);
	setObjectOrder('checker', 0);

	makeLuaSprite('platform', 'platform', -905, -620);
	scaleObject('platform', 1, 1);
	setScrollFactor('platform', 1, 1);
	setProperty('platform.antialiasing', true);
	setObjectOrder('platform', 1);

	setScrollFactor('gfGroup', 0.95, 0.95);
	setProperty('gfGroup.antialiasing', true);
	setObjectOrder('gfGroup', 2);

	setScrollFactor('dadGroup', 1, 1);
	setProperty('dadGroup.antialiasing', true);
	setObjectOrder('dadGroup', 3);

	setScrollFactor('boyfriendGroup', 1, 1);
	setProperty('boyfriendGroup.antialiasing', true);
	setObjectOrder('boyfriendGroup', 4);

	close(true);
end

Are you modding a build from source or with Lua?

Lua

What is your build target?

Windows x64

Did you edit anything in this build? If so, mention or summarize your changes.

No response

@HuniLuxe HuniLuxe added the help wanted Extra attention is needed label Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants