It's a good subway surfer. I especialky like the coins that have a mese cristal texture. The only thing that I'll reproch is the bug. When you keep the jump bar pressed, you can noclip the trains and don't die, and you can stop keeping it pressed when you don't touch any train and you will be able to continue. Else, nice game. I regret the policeman...
I will just take a look at the code and tell you what part is wrong, if I find it, it will surely make the task easier...
Okay I took a look on the code. There's 2 files that are the problem. The first is the builtin_modifications.lua. It controls the collisions with the minetest.override_item function. And the second file is init.lua and look at the 272nd line and next it and look too the animations. This file controls the moves and the animations. My theory? The animations have a priority on the "train detector". I explain: The collisions detect if the player is oberride a train, so touching a train or not. But to do that, the script has to be started. the problem is if the jump animation script is started before, because it "has" a priority (I don't know if it's the case), the detector script won't start, and it won't start during the script is playing the animation. So if we keep the jump button orthe space bar pressed, it always has the priority and the detector script can't start. This is how by keeping jump button, you can noclip the wagons without dying. I hope my comment has been useful, and if I precise what are some functions, it is to make the other uneerstand. I know that because you created this content, you shouldknow the function you wrote in. Hope bug quickly fixed. Have a nice day.
Just change the priority order by making the builtin_modifications.lua executes itself before the init.lua. It should fix the bug. I just didn't look what file determinated the priority order. I let you find.
What I need to do is basically replace this code by a check to know if the player collide with the train based on how high the player is. I could also add the ability to run on trains at the same time.
It was already reported here but I havent got the time to fix yet.
It's a good subway surfer. I especialky like the coins that have a mese cristal texture. The only thing that I'll reproch is the bug. When you keep the jump bar pressed, you can noclip the trains and don't die, and you can stop keeping it pressed when you don't touch any train and you will be able to continue. Else, nice game. I regret the policeman...
I will just take a look at the code and tell you what part is wrong, if I find it, it will surely make the task easier...
Okay I took a look on the code. There's 2 files that are the problem. The first is the builtin_modifications.lua. It controls the collisions with the minetest.override_item function. And the second file is init.lua and look at the 272nd line and next it and look too the animations. This file controls the moves and the animations. My theory? The animations have a priority on the "train detector". I explain: The collisions detect if the player is oberride a train, so touching a train or not. But to do that, the script has to be started. the problem is if the jump animation script is started before, because it "has" a priority (I don't know if it's the case), the detector script won't start, and it won't start during the script is playing the animation. So if we keep the jump button orthe space bar pressed, it always has the priority and the detector script can't start. This is how by keeping jump button, you can noclip the wagons without dying. I hope my comment has been useful, and if I precise what are some functions, it is to make the other uneerstand. I know that because you created this content, you shouldknow the function you wrote in. Hope bug quickly fixed. Have a nice day.
Just change the priority order by making the builtin_modifications.lua executes itself before the init.lua. It should fix the bug. I just didn't look what file determinated the priority order. I let you find.
Thank for investigating!
Basically when jumping obstacles like trains are ignored: https://github.com/AFCMS/Subway-Miner/blob/15c0a8b0b498ec330b9720ac0e31955853c48ce4/mods/sm_game/init.lua#L625-L627
What I need to do is basically replace this code by a check to know if the player collide with the train based on how high the player is. I could also add the ability to run on trains at the same time.
It was already reported here but I havent got the time to fix yet.
Will try to fix in the next few days.
Ok nice! I am happy to learn you saw my advice. Cool, impatient to see the game then.