Questions tagged [godot4]

for questions regarding usage of the Godot game engine, specifically version 4.0+

Recently, the Godot Game Engine released version 4.0. This major release brought many changes to how things are done in the engine including removing and adding various configuration options, as well as changes to their scripting language, GDScript.

Because version 3.5 is still in use, this tag allows users to specify that their question is about using version 4.0.

130 questions
0
votes
1 answer

CharacterBody2d jittering while moving and not moving to correct place in Godot 4

I am trying to make a 2d infinite game were you run around through dungeons and kill monsters. I am currently working on the AI for the enemies (skeletons) but they keep telepoting to the player when you jump they are moving VERY slow when on the…
Flapjaq
  • 3
  • 3
0
votes
1 answer

What does the src_rect parameter in CanvasItem.draw_texture_rect_region() do?

Now, the official documentation sadly only reads: void draw_texture_rect_region ( Texture2D texture, Rect2 rect, Rect2 src_rect, Color modulate=Color(1, 1, 1, 1), bool transpose=false, bool clip_uv=true ) Draws a textured rectangle region at a…
Nx Ge
  • 3
  • 2
0
votes
1 answer

How to add collision to Line2D dynamically in Godot4?

I'm totally new to godot engine. Wanted to create a game that allows player to draw lines on the screen. All the lines drawn on screen will have physics interaction with other collisionShape. I found the tutorial and was able to draw lines using the…
user1865027
  • 3,505
  • 6
  • 33
  • 71
0
votes
1 answer

Flask/Godot error when serving HTML5 game: net::ERR_BLOCKED_BY_RESPONSE 200 (NOT MODIFIED)

While trying to host my video game made with Godot 4 with Flask, I've ran into a problem-- the game doesn't load, and instead there is a spinning circle. The error messages are as follows: GET http://127.0.0.1:5000/game/index.worker.js…
0
votes
1 answer

How can I change the position of the points in a Polygon2D node with a line of code?

There doesn't seem to be any clear info elsewhere online on this topic. What I want to do is write a line of code to specify the location of a specific point in the polygon. How is this done? I tried this: var newPoly =…
0
votes
0 answers

MultiplayerSynchronizer error in Godot4 when building spawn

i have been making a multiplayer RPG game and i have implement a building grid place system. The problem is when i build sth from the client side i get an error get_node: Node not found: "World/PlayerBuildings/CampFire1/MultiplayerSynchronizer"…
0
votes
0 answers

Can TileMap children be referenced in the parent TileMap?

Try to wrap my head around the new way 2D Tiles are working in Godot 4. Seems like in Godot 3, you could instance a TileMap scene as a child of a TileMap and all of tiles on the child were referenced on the parent. This is apparently not how Godot 4…
Mighty Ferengi
  • 746
  • 3
  • 8
  • 22
0
votes
1 answer

Host and Client sync problem in Godot 4 multiplayer RPG game?

This multiplayer RPG game, which i make, have a lots of problems :). This time, the problew is that, when the host place down a item with the my grid system, in remote tab(at Editor where you can see what is going on with the nodes when you ran…
0
votes
0 answers

Invalid set index 'velocity' (on base: 'StaticBody2D') with value of type 'Vector2' error in Godot

In my main script (main.gd), I wrote: var asteroidPath = preload("res://Asteroid.tscn") func _process(delta): if time: time -= 1 if time <= 0: var Asteroid = asteroidPath.instantiate() $Asteroids.add_child(Asteroid) …
0
votes
0 answers

Godot 4 multiplayer sync animation tree StateMachine

Recently i am making a multiplayer Survival game in Godot 4. For player's animations i use Animation tree with the State Machine. The animations is simple: Start->Idle->walk->idle. My proble is that, when i past in Multiplayer Sync node the property…
0
votes
1 answer

Godot 4 How to shoot?

I'm new at Godot and I want to develop a small 2d tank game. But I'm stuck at shooting. I've watched many tutorials, but they are for me beginner far too complicated. So I want to ask if it's possible to move an object into a direction with just an…
ekcum
  • 1
  • 1
0
votes
1 answer

RigidBody2D affecting rotation

I've a car whose rotation must not be influenced in anyway by collisions and other things. The rotation is set manually in code; so I've set lockRotation = true. However, the method ApplyForce is somewhat bugging my custom rotation. Any idea? //…
Hydroper
  • 344
  • 2
  • 9
0
votes
1 answer

How not to render extra guns in Godot multiplayer FPS?

I'm trying to make an ordinary multiplayer FPS. I use a second Camera3D and a SubViewport to avoid player's gun clipping into the wall: enter image description here Both cameras' cull masks set up the way that everything works fine until the other…
0
votes
0 answers

Why does CharacterBody2D jump when in motion?

I've this CharacterBody2D subtype: using Godot; using System; using Recoyx.CarKnockOnline; public partial class AutomobileEntity : CharacterBody2D { public PlayerData PlayerData = null; // Called when the node enters the scene tree for the…
Hydroper
  • 344
  • 2
  • 9
0
votes
0 answers

Godot checks wrong place to find function on Android exports?

I have a game that does not play sound properly. Lots of other issues there were such as preloading freezed game in android, that are not present in windows but only appears on android. I fixed them taking a long time with alternative approaches but…
Rifat
  • 1,700
  • 3
  • 20
  • 51
1 2 3
8 9