|Topic was automatically imported from the old Question2Answer platform.
At the moment I’m making a game for my Year 9 ICT project with a few friends, however the issue at the moment is, when playing in the editor, all of the collision boxes and area 2d detection nodes seem to be somewhere else.
I have designed my project so that a collectable object, say a coin for this example, is in a separate scene. I have in there a area2d node and collision node attached with that, a sprite and the basic items needed for it. When I import the item into the main scene and play the game, it doesn’t collect when I walk over it as the code is supposed to do, but when I walk over a specific spot in the map. Even during multiple tests, the coin script will trigger at the wrong place.
This error even happens with the collision boxes made in the main scene, for example the platform. Its slightly different in this case where the player collides where there shouldn’t even be a collision box.
I’m semi new to coding and really new to Godot, so please try to keep it as less technical as possible. If you need any other information (gifs, images, etc) let me know and I’ll add them as soon as possible.
What do you see if you activate
Debug | Visibile Collision Shapes from Godot’s main menu? That’ll cause it visually render the collision shapes.
jgodfrey | 2020-10-26 20:34
I’ve turned it on, and the collision boxes for the shapes are all where they need to be, however there is still a spot on the map where my player will not go. I don’t understand what could be keeping him from moving there?
TempSchoolAcc#1 | 2020-10-27 01:42
I’m not sure without being able to see the problem. Is it possible to share the project?
jgodfrey | 2020-10-27 02:29
Sure thing. I’ll have to do it after school as that’s where I am now and my sessions almost over, but I’ll add an exported project version (which the error still works in, I checked) to mediafire and give you the link and instructions on how to replicate the error. I’ll respond to this thread with the link soon! Thank you!
Let me know if you need anything extra or even the proper game files
TempSchoolAcc#1 | 2020-10-27 02:33
To make sure we’re on the same page… For someone to help further, we’ll need a copy of the Godot project itself - not an exported (runnable) copy of the game. Anyway, I’m happy to take a look when that’s available…
jgodfrey | 2020-10-27 02:44
I apologise for the delay, the project files and everything is currently a mess and as this is the first time opening the project on a computer away from school, the anchoring has not been done properly and everything is everywhere. I’m working to get this presentable as soon as possible, but at the moment the issue does not seem to be occurring. I will hopefully have this uploaded by the end of the day! Thank you for your patience and help so far
TempSchoolAcc#1 | 2020-10-27 06:55
Attached above is the link for the files. In the .zip there are 2 files - the runnable games (2 exports, one from the school computer and one from my personal computer after some adjustments in the editor) and the project files. On my personal computer, I am unable to replicate the error through the editor. I am only able to replicate it via the school export. If the error does not appear for you while looking at the project files, please use the exported version and see if you can diagnose something from there. I am very appreciative of your patience and help so far, thank you!
P.S. I apologise for some of the asset file names, as said before this is a school project and uhh… the names are not the best.
TempSchoolAcc#1 | 2020-10-27 07:38
I’ve grabbed the zip file and have played with both the exported game (2 different versions) and the Godot project itself.
The project itself doesn’t seem to contain any platform or coin instances. One of the exported builds does have platforms, but no coins. The other exported build doesn’t have either.
Generally, I can move around as expected in all cases.
I guess I’m just not sure what I’m looking for…
jgodfrey | 2020-10-27 20:46
sorry, I forgot to mention that this issue occurs with coins, barrels, platforms, really anything that has a collision box. With some tweaking between computers I’ve managed to get the issue fixed. Sorry, I should have been more specific.
Anyway, the error seems to have been fixed after some visuals tweaking, so maybe it was a glitch to do with that? Thank you for your help, I’m sorry this has been some weird glitch that occurs sometimes and doesn’t seem to anymore
Thank you for your help!
TempSchoolAcc#1 | 2020-10-28 04:32
Some of the given ideas are really amazing thanks for sharing the solution but here are also some issues related to the same issue which occur as someone already mention the same problems.
jamessmithpros | 2021-01-27 16:31