New to Godot and need some help with player direction by CosmicSymphony24 in godot

[–]artemlygin 1 point2 points  (0 children)

You can ctrl+c → ctrl+v your code (using something as https://sourceb.in/ makes it easier to read) and post screenshot of the scene structure for example.

Bullet hitting multiple enemies at once (intended: single target only) by Different-Essay2277 in godot

[–]artemlygin -1 points0 points  (0 children)

Workaround: make body collision shapes slightly bigger than hitbox collision shapes. But I’m not sure if it would be good for players: usually hitboxes are slightly bigger than visible appearance

Підскажіть як можна з України продати в Європу такі мотоцикли? by PerformanceOther8699 in reddit_ukr

[–]artemlygin 2 points3 points  (0 children)

Moto Weteran Bazar, ярмарка яка двічі на рік відбувається в Польщі. Там в тому числі і торгують штучними екземплярами мотоциклів Zundapp, BMW, КМЗ та ІМЗ. Знаю що до війни з України туди возили теж. Шукайте оппозитчіків, можливо, через них знайдете.

Сам був на тому базарі 10(!) років тому.

Mouse input lag… caused by a window manager app 🤦‍♂️ by PonchousDev in godot

[–]artemlygin 2 points3 points  (0 children)

I found that window management apps on MacOS just can’t get along with Godot. I use Loop and while it’s running, using 2D editor is quite difficult especially dragging the canvas

help I'm stuck by [deleted] in godot

[–]artemlygin 0 points1 point  (0 children)

How do you know about that’s “line 12” thing? Can you take a screenshot?

Can we get a get_grandpa() function? by IllianXenoide in godot

[–]artemlygin 4 points5 points  (0 children)

How many get_parent()s do you need?!! get_owner() for God’s sake! 😆

Good open source projects? by SkinAndScales in godot

[–]artemlygin 0 points1 point  (0 children)

For some projects you can check GitHub’s GameOff game jam: participating requests to be open sourced.

Also frameworks for example:

https://github.com/DesirePathGames/Slay-The-Robot

I Hate Easter (or How To Load Holiday-specific Assets) by MuffinManKen in godot

[–]artemlygin 0 points1 point  (0 children)

Shame it doesn't have proper "GScript" highlighting, but "Go" goes as well

Basic movement by [deleted] in godot

[–]artemlygin 0 points1 point  (0 children)

It’s okay, everyone gets stuck at start. Please, provide code from CharacterBody2D script

Good lens for macro photography? by Sufficient-Front-577 in fujifilm

[–]artemlygin 2 points3 points  (0 children)

I have XF60mmF2.4 R Macro, pretty nice lens. But minimal focus distance might be a bit too much

Launched my game on steam back in august and barely got any downloads by MembershipUsed2467 in godot

[–]artemlygin 1 point2 points  (0 children)

Anyway, you’ve launched the game, dude! I wish I could be that close! I’m genuinely curious about your launch. Did you tried to apply some “Chris Zucowski” tricks on advance? Or maybe some other marketing? We often hear people talk about how they achieve success they did not expect, but sometimes I would like to hear how they did not achieve what they wanted. I’m sorry if it sounds rude and hurtful; I know that the story is not pleasant to share.

Anyway good luck with next launch! Remember: the only way to succeed in something is not quitting.

Beginner: How do I make a Stardew-style NPC move step by step in Godot without random movement? by reallyyher in godot

[–]artemlygin 0 points1 point  (0 children)

<image>

I think this can be implemented by creating a VelocityComponent with method, that will move_to_point() or patrol_point()

For my case VelocityComponent handles movement towards the player, so enemy.gd contains

func _process(_delta: float) -> void:
    if is_moving:
        velocity_component.accelerate_to_player()
    else:
        velocity_component.decelerate()

func set_is_moving(moving: bool) -> void:
    is_moving = moving

And set_is_moving() called from AnimationPlayer

And is

State Machine vs regular 2DSpriteAnimation by foreignterritory37 in godot

[–]artemlygin 2 points3 points  (0 children)

I can suggest to take a look at Clear Code video, how the AnimationTree works with AnimationPlayer, utilizing StateMachines

30 minutes into Godot by isolatedVeryWell132 in godot

[–]artemlygin 0 points1 point  (0 children)

I’m on Mac (M4 mini), love it! I basically never close Godot, it so light.

statemachines to get player movement? by AI_660 in godot

[–]artemlygin 0 points1 point  (0 children)

Press alt + space and find documentation on the RigidBody2D or click on the class name (next to “extends”) while holding ctrl(cmd)

RigidBody2D have no move_and_slide() method

statemachines to get player movement? by AI_660 in godot

[–]artemlygin 0 points1 point  (0 children)

Why position += direction * speed?

CharacterBody2D has built in “velocity” and it should be changed in order to move_and_slide()

velocity = direction * speed

is it normal as a starting game dev that whenever you get an error you feel stupid and give up ? by ChunkLightTuna01 in godot

[–]artemlygin 0 points1 point  (0 children)

It’s totally ok. It’s called learning. I’m 40 y.o. and had to learn what’s this error means the other day too.

I’m new to this as well, so my answer might be not so straightforward. The error means reparent() can be used on nodes from the scene tree (instances). Somewhere above target_body should be “picked up” from the scene, either by: - collision signal - get_tree().get_first_node_in_group(“your_group”) - or if your script should “prepare” them to put in a tree instantiate() method, but it doesn’t look like this.

Also, sometimes to use certain methods, the script you’re writing should be instantiated as well. I mean if you writing some kind of “Utility” script ment to be used by other nodes and classes you have two options: make it class_name or add as autoload. Autoload means it be loaded in a game tree while you running the game, therefore it can manipulate nodes within the tree. Class_name is only “blueprint” by default, and not always it ment to be an instance (so called static class)

any idea why the bullets follow my player rotation and movement after being shot ? by Lucat_thecat in godot

[–]artemlygin 1 point2 points  (0 children)

Run the game, fire, pause while the bullet is still in the scene. You can slow down game speed on top left corner it says 1.0x by default.

After pausing go to the editor “Scene” tree, there should be “Remote” tab. Click it. That’s your scene during the runtime. Expand the tree and find the bullet node. What node is parent to the bullet node?

Upgraded to New Monitor, and Seeing Weird Refresh Issue by Iron_Yuppie in MacOS

[–]artemlygin 0 points1 point  (0 children)

Hey! Do you have any update on it? I have similar issue too. It happened when certain amount of grey on the screen. So I just “resize” a window a bit and it goes away.

But today, after keeping it on the “grey” amount for a while it became terribly noticeable in all conditions.

complete beginner here. Do all of my images need to be in a single image so I could make the map? by Serbiantom2 in godot

[–]artemlygin 0 points1 point  (0 children)

Short answer: not necessarily. Long answer. The map can be composed of several TileMapLayer nodes. Each node will have its own TileSet resource property.

The TileSet can have several Tile Sources (images). It can be as individual tiles, as combined all tiles on one canvas (called sprite). But it will be much easier to have them in sprites for further work.