Skip to content

u/code4broke

In this archive from Jul 2022 to Nov 2022

9
posts
47
comments
9
media
507
score

The problem is you're picking a random spawn point out of the total number, it has nothing to do with joining at the same time.

What you need to do is remove the used spawn points from the equation so they can't be selected. It would be considered bad practice to simply set a boolean flag because if you generate a random number again after the first one failed you could land on the same occupied spawn point. Which means, there's technically a chance for the code to make an infinite amount of attempts if it happened to roll the same occupied numbers over and over again. Or, if all spawn points were occupied it would gurantee to loop for ever, breaking the game.

Finally, you probably don't want those spawn points destroyed, I'd imagine you'll need them again unless you spawn once and only once and no other players can join after 4 players have even if one leaves.

3 points

I only watched the first minute or so but at the start of the video he says it's done by getting terrain height data that's freely available from NASA. Therefore, you could just use that same data in unity to set the height of vertices of a plane, in the same way you'd use layered noise to create the height of a procedurally generated world.

Just find out what form the height data comes in, write a method to convert it into a normalized array of height points and then set the height of your vertices based on the points.

4 points

I find it very very easy to work on my game because I enjoy doing it. I need motivation to make videos about it, or do art or animations and stuff like that, but doing the programming is something I actually want to be doing because I love it.

I didn't always feel this way, I have a programming background and I had a hard time getting into Unity because I had to first understand the engines nuance, I couldn't just sit and write code because I had to look up things constantly. Once I got past that stage and I could just sit and work on my game even with no internet connection the feeling of enjoying it returned and now I work on it constantly.

I promise you can't feel the same way following Youtube tutorials because we are all excited about the results but if you can find a way to make yourself excited about the work then that's the trick to being productive, at least for me. Once you find some success doing that, I find it starts to motivate you to do the work you don't want to do.

1 points

I don't think I've got a single real person to look at something I posted on twitter. I use all these game dev hashtags and they automatically get liked and shared by bots but if I look at the analytics I don't think it's ever resulted in a single link click. Just my experience, but it seems way easier to get organic attention on other platforms.

1 points

I liked speed running in the old days before patches existed, now adays developers can just push a fix for the bizarro bug that teleports you through the level if you jump at the right time. I don't think I can understand the mindset of someone that makes speed running their life goal but it is pretty entertaining seeing developers react.

3 points

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.