Relative Content

Tag Archive for godot4

Godot Enemy Follow AI

I need some help with my Code since I can’t find any solution. I’m fairly new to programming especially with GDScript and I’m trying to implement an easy and basic Follow AI Enemy but I can’t find any good Scripts because every other is in Godot 3. In Godot 3 we could use the move_and_slide with arguments likemove_and_slide(direction * speed) but now we can’t and I can’t find a solution, here my Code:

How do I make a RigidBody3D node player controllable in Godot?

I am trying to make a game where the main character is a ball who cannot jump and only can roll. The problem is that since I am using the CharacterBody3D node, the player cannot be pushed around by other objects, cannot roll at all (therefore cannot use ramps), and is not what I want.

How to use BoxContainer to line up three sprites

I have a BoxContainer in which I am trying to line up three Sprite2Ds and a button horizontally. I have code to calculate the minimum width and height of the container based on the sizes of the child nodes, but the Node2D/Sprite2D nodes always stack on top of each other, while the button honors the configuration.

Expandable TouchScreenButton Texture

How can I make a TouchScreenButton expandable in Godot so that it doesn’t stretch on the edges? When using a regular Button, we can edit the theme and under `Style.normal` we can add StyleBoxTexture that behaves like a NinePatchRect to prevent stretching on the edges. How can I achieve this with a TouchScreenButton?

Godot – Need to tween character movement

My character will have a broken legs at one point of the game. I want to make their movement reflect it. So that would be a kind of tween that would ease in and east out probably. How can I do that?

Godot Game Crash After Splash Screen in Android

I created game using godot 4.2.1 and I’m trying to export it to android I exported the game using as both apk and remote usb debug. But the game crash immedeatly after the splash screen and it gives following error