Question Questions
2
extends CharacterBody2D
func _physics_process(delta)
var direction = Input.get_vector("move_left", "move_right", "move_up", "move_down")
velocity = direction * 600
move_and_slide()
if velocity.l...
Inoculum asked 7/3, 2024 at 19:59
8
hello again! after doing some research, dealing with some personal issues, and studying a bit more, I came up with a question: is Godot engine really good for creating a JRPG or a turn-based RPG?
I d...
Assr asked 5/3, 2024 at 20:7
28
I wasn't sure where to go with this, so I guess I'll post here. Suppose I want a grid map at runtime to place things in game, how would I go about doing this? Do I have to code the sizes of blocks I w...
Asymptotic asked 3/7, 2022 at 1:12
4
extends CharacterBody2D
func _physics_process_Delta():
var direction = get_vecter("move_left", "move_right", "move_up", "move_down") what is wrong
velocity = direction * 600
move_and_slide()
if...
Dugaid asked 4/3, 2024 at 19:48
2
I've created a conditional breakpoint by assigning a key to change the 'breakpt' variable from false to true.
Elsewhere I have a conditional statement that if breakpt=true, it accesses a 'breakpoint' ...
Speciosity asked 1/3, 2024 at 4:56
2
Hello!
I've been the last few hours trawling over the documentation, but I can't quite seem to find the answers I'm looking for, and I was hoping to get some help. I'm trying to find an optimal strat...
Arborescent asked 4/3, 2024 at 11:49
2
hi. I'm currently making a top down game and need a camera system for my map. The map is more or less divided up into individual rooms of varying sizes similar to something like a zelda dungeon. when ...
Aromatic asked 3/3, 2024 at 20:31
5
When i am writing something (poorly thought out) like :
class_name DataSet
extends Resource
@export var resource_type: String = "Resource"
@export var resource_set: Array[resource_type]
The engine ...
Ezara asked 3/3, 2024 at 21:16
4
When function gets called multiple times it only works for the last values :?
i call objective_effect_animator("concrete",column,row) with multiple column,row values but it only works for the last col...
Decided asked 1/3, 2024 at 13:29
5
In Blender 2.79, when i created animations and export them, then re-import, the animations i made was combined:
Combined animations
Export settings
After re-import
The name of the animations was impo...
Clarkclarke asked 1/3, 2024 at 17:38
2
The mountains in my game are made from tilesets, so I can easily make them in a short time.
But I have a question: how do I get the player to walk behind the mountain?
Currently, the land on the...
Contagion asked 1/3, 2024 at 9:37
2
Solved
Basically, i have a global script in which i preload() every room the player can enter. So if the player enters a door, i just call the autoload to instantiate the scene the player's supposed to end u...
Dumbstruck asked 28/2, 2024 at 7:49
11
I have a simple exercise where I have a row of buttons and when I click on one it copies the texture to a simple TextureRect that follows the mouse. I want to click to place the texture but the event ...
Aileenailene asked 27/2, 2024 at 3:53
4
I have a script that is autoloaded called "state". The script extends a Node. It just has some basic funcs, nothing relevant. The bug I am reporting is, I never wrote "class_name State" on this script...
Tunicle asked 12/4, 2023 at 3:20
1
Hi! I'm trying to do a game over menu with a simple restart button, but something's not working right. Here's the restart itself:
func on_game_over_menu_actioned(item):
if item == "Retry":
Charact...
Fancher asked 26/2, 2024 at 2:26
4
I'm using camera3d.project_ray to intersect with a rotated Area3D so I can place cubes on it with a mouseclick. But the placement is rotating away with the Area3D as shown in the GIF.
code:
var c...
Shiff asked 24/2, 2024 at 13:19
4
Solved
I was looking through some of the best practices on the documentation, specifically about when to use scenes vs when to use scripts. I'm pretty confused here, especially when it says to use scenes spe...
Haletky asked 24/2, 2024 at 14:51
2
Hey!
I'm encountering an issue with accessing a property within a function in my code, and I'm hoping someone can help me troubleshoot it.
Here's the problem: I have a standalone script called Vehic...
Spectacle asked 24/2, 2024 at 13:31
4
when i tried to open scene in editor it failed and give me error. here is the error
scene/resources/resource_format_text.cpp:283 - res://levels/level5.tscn:168 - Parse Error:
Failed loading resour...
Unheard asked 23/2, 2024 at 3:17
17
Hi! I've read the @export related section in docs, but it says nothing about this question, and it could be a bit misleading IMO.
The fact is, if you have i.e. an "item" scene that represents an inven...
Intercalary asked 6/10, 2023 at 9:21
8
I was hoping to use the get_pixel method to get the color of the pixel points of a TextureRect's texture image, but it seems to be going wrong. The texture is displayed correctly centered on the scree...
Radon asked 16/2, 2024 at 3:2
2
Hello everyone,
I have been attempting to resolve this issue since this morning without success. In my script, the player is required to click on three different buttons, each initiating a dialogue. ...
Bousquet asked 17/2, 2024 at 20:47
1
So i have a firearm class/scene that i inherit from to make new guns and i want to implement for now a simple inventory that stores ammo and weapons.
So i'm wondering Should i have the inventory ins...
Vesiculate asked 19/2, 2024 at 19:24
2
Solved
I'm trying to set the shape of a collision polygon to be the same as a Polygon2D in _ready(). It's just 2 lines of code, get the shape and set the shape.
The black shape is the Polygon2D, the red ...
Scholiast asked 19/2, 2024 at 16:33
15
Solved
Hello,
I'd like to understand something: in the doc, it writed the engine supports only 8 bits depth channels for the PNG format. I have make textures as 16 and 24 bits depth.
What happend if i stay ...
Incogitant asked 16/12, 2022 at 9:29
© 2022 - 2025 — McMap. All rights reserved.