My character dies upon completion of the first level?

whenever the player hits a switch at the end of a level, the screen is supposed to fade to black, switch tilemaps, then fade back in. what actually happens is; the screen fades to black, then i get a game over for seemingly no reason. why?

1 Like

please help me. i can’t playtest any more levels if i cant get in them without dying. this won’t get done without someone’s help.

1 Like

Ill help! If you dont mind, you could send the link

ok send up the game and i will see if i can fix up the code

1 Like

LINk?

Could you send the code

Please send a game link so we can take a look at the code

1 Like

Always send your code otherwise no one will understand the issue.

1 Like

apologies, everyone. here’s the link.

2 Likes

The game over block is the issue for some reason when I removed it the next level loaded. I would find some alternative solution like using tilemaps.

welp. Since I suck at code, I don’t know what’s going wrong. Plus, data and y-axis? I’ve never used them. (technically, I have used y-axis, but that doesn’t count.)

I know the problem and currently have it fixed. I will releasevthe link when i have fixed the enemies as well

i figured it out! if i get rid of the y value in favor of {[camera Y] - 0.99}, i can get the same effect regardless of tilemap height!

2 Likes