Skip to content

u/Shigsy89

In this archive from Jul 2021 to Nov 2023

5
posts
75
comments
0
media
319
score

Top posts

Multiplayer clock synchronisation

I'm seeing fairly big issues with clients which are running on physically separate machines to the server i.e. they have their own local system clocks. I can run multiple clients on the same machine as the server and everything is smooth and in sync. If I run one client on a different laptop for exa...

4 points6 comments
Open on Reddit

Godot v4 C# docs.

It seems quite a lot has changed with v4 when it comes to method signatures etc (particularly around networking related classes), so simply guessing based on the GDScript function names is not anywhere near as effective as it once was :) I've found multiple C# functions with very very different name...

3 points11 comments
Open on Reddit

C# signals with params

----Update---- I came back to the project today with a fresh set of eyes and resolved the issue in 10 seconds. My suspicion was correct - the value being passed to the emit event is, on occasions, being set to 0 immediately before hand by an async process. Thanks to anyone who took the time to look...

3 points5 comments
Open on Reddit

Top comments

You are almost certainly spawning these objects overlapping with each other, and they appear to be physics objects so are colliding and bouncing off in random directions.

As a side note, if you are instantiating objects inside a loop, you are doing things wrong and will run into major performance issues very very quickly :) Google "object pooling" and implement a solution following this pattern.

41 points

Firstly, that's all very normal so don't worry ๐Ÿ˜„

You need to temporarily forget about any game idea or design you have in your head. Choose an engine e.g. Godot. Now watch a beginners tutorial that walks through the interface and engine capabilities. Get familiar with the methadology, how to structure your game files within that engines tools.

Now, aim to make a simple 2D scene with a box in the middle that you can move around with the arrow keys. What does that require?

  1. A scene
  2. Rendering sprites
  3. Keyboard inputs
  4. Moving sprites based on inputs

There are 4 topics you don't know, but need to. Open the official Godot docs and find the relevant documentation on those concepts and read. Try to get the basics going, step by step. By the time you have a cube moving around an empty scene you will already have learned a lot and will already be able to imagine what would be involved in getting from that basic scene to a space invaders clone.

Now, follow the same methodical step-by-step process to slowly build that space invaders clone :) You need to shoot, right? Start there - you press a key, the key makes a bullet (sprite) appear, the bullet moves... sounds familiar, right? You already learnt these concepts so could probably now make that yourself. Enemies are just sprites that move back and forward so no new concepts there either. Bullets kill the enemy when they hit so here we have something new - collision detection. Back to the docs to learn about sprite collisions.

This is how you slowly learn to problem solve and build games yourself without copying tutorials.

Btw tutorials are great for learning tools like the animation tool in Godot, so by all means use tutorials for this type of thing.

31 points

If you think Godot is too complex to install and use, I'd question your goal of creating "complex games". You can write C# with Godot and Unity - I'd recommend Godot as it's node based system is more familiar to OO programmers.

8 points

If visuals are your only lacking skill, you are in a good position. There are plenty of free assets, 2D and 3D, available online.

Fyi - I personally feel visuals are low priority for me as I get the most enjoyment from the software architecture challenges. It depends on what you are doing game dev for - so that you enjoy it, or are you trying to make money from it? If it's the former, then visual skills aren't that important as you can use free assets. If it's the latter then you can pay professionals to produce your assets, not to mention the fact that game dev is low on the list of lucrative software development domains.

8 points

Subreddits

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

โ†orโ†’
Previous / next file
โ†‘orโ†“
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.