0 votes

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.

Thank you!

in Engine by (28 points)

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.

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?

I'm not sure without being able to see the problem. Is it possible to share the project?

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 :)

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...

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 :)

http://www.mediafire.com/file/nf94go6oto3pkll/Helping.zip/file

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.

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...

Hey,

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!

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.

Categories