r_unity3d | Unsorted

Telegram-канал r_unity3d - r/Unity3D

103

Unity3D news and project showcases from Reddit. Made possible with @reddit2telegram (@r_channels).

Subscribe to a channel

r/Unity3D

RGB color sliders produce the wrong colors

I've been following this tutorial https://www.youtube.com/watch?v=sBkkeiZsx1s. Which lets you use three sliders, one for red, one for green, and one for blue to choose any color for the player. I've done everything exactly as this person has done. Even copied all the files and tried a lot outside of it too. But no matter what I do when I use the red slider, the character turns cyan. When I slide the green, they turn yellow. When I slide the blue, they turn pink. How do I fix this?

https://redd.it/1dp85mc
@r_Unity3D

Читать полностью…

r/Unity3D

my prefab has things missing. how can i fix it?

https://preview.redd.it/as3vdjn76z8d1.png?width=605&format=png&auto=webp&s=c11bd3756a48bc2c6d3154dd46e20440392339ba

https://preview.redd.it/0g0etn0c6z8d1.png?width=590&format=png&auto=webp&s=3575b032aeb043619a5ab87235bcccbc2a85200c

im making a game where you play as a bartender and you need to throw drinks out. i made the drinks into a prefab and when I press space it spawns a new drink to slide across the table. problem is when I spawn a prefab of my drink it spawns without any of the references to other objects. how do I fix this?

https://redd.it/1dp8lfl
@r_Unity3D

Читать полностью…

r/Unity3D

2D Platformer Movement (sliding too much)

Hey, this is probably an annoying post but i need help with basic movement, when I move to the side it feels like the character is sliding too much.

Unity editor version: 2022.3.4f1 LTS

It won't let me upload a video so here's a screenshot, I move and then when I stop pressing the button the X Position value keeps changing for a little too long.

https://preview.redd.it/401pjm0n509d1.png?width=1917&format=png&auto=webp&s=ed19b2f344fb7c5febb96a897556c62f350a0c56

I followed this tutorial: https://www.youtube.com/watch?v=0-c3ErDzrh8

Here's the code:

using System;
using UnityEngine;
using UnityEngine.Serialization;


namespace PlayerCharacter
{
public class PlayerMovement : MonoBehaviour
{
public Rigidbody2D body;
public BoxCollider2D groundCheck;
public LayerMask groundMask;

public float acceleration;
[Range(0f, 1f)]
public float groundDecay;
[FormerlySerializedAs("groundSpeed")] public float maxXSpeed;

public float jumpSpeed;

public bool grounded;
float xInput;
float yInput;

// // Start is called before the first frame update
// void Start()
// {
//
// }
// Update is called once per frame
void Update()
{
CheckInput();
HandleJump();
}

void FixedUpdate()
{
CheckGround();
HandleXMovement();
ApplyFriction();
}

void CheckInput()
{
xInput = Input.GetAxis("Horizontal");
yInput = Input.GetAxis("Jump");
}

void HandleXMovement()
{
if (Math.Abs(xInput) > 0)
{
// increment velocity by our acceleration, then clamp within max
float increment = xInput * acceleration;
float newSpeed = Mathf.Clamp(body.velocity.x + increment, -maxXSpeed, maxXSpeed);
body.velocity = new Vector2(newSpeed, body.velocity.y);

FaceInput();
}
}

void FaceInput()
{
float direction = Mathf.Sign(xInput);
transform.localScale = new Vector3(direction, 1, 1);
}

void HandleJump()
{
if (Mathf.Abs(yInput) > 0 && grounded)
{
body.velocity = new Vector2(body.velocity.x, jumpSpeed);
}
}
void CheckGround()
{
grounded = Physics2D.OverlapAreaAll(groundCheck.bounds.min, groundCheck.bounds.max, groundMask).Length > 0;
}

void ApplyFriction()
{
if (grounded && xInput == 0 && yInput == 0)
{
body.velocity *= groundDecay;
}
}
}
}
using System;
using UnityEngine;
using UnityEngine.Serialization;


namespace Player
Character
{
public class PlayerMovement : MonoBehaviour
{
public Rigidbody2D body;
public BoxCollider2D groundCheck;
public LayerMask groundMask;

public float acceleration;
Range(0f, 1f)
public float groundDecay;
FormerlySerializedAs("groundSpeed") public float maxXSpeed;

public float jumpSpeed;

public bool grounded;
float xInput;
float yInput;

// // Start is called before the first frame update
// void Start()
// {
//
// }

Читать полностью…

r/Unity3D

Which team are you? Parry or Perfect Dodge?

https://redd.it/1dp0yfn
@r_Unity3D

Читать полностью…

r/Unity3D

Spent the day modeling some new props for my 90s east German kitchen.

https://redd.it/1dp0pln
@r_Unity3D

Читать полностью…

r/Unity3D

gun radius issue

I'm coding (using visual scripting but i understand regular code) a gun which follows the mouse around a circle linked to the player, however i cant seem to figure out how to stop it from acting weird whenever the play moves the mouse INSIDE the circle. It simply goes at a 90 degree angle and follows the mouse. Below is my code. Any ideas?

Part 1

Part 2



https://redd.it/1dp458y
@r_Unity3D

Читать полностью…

r/Unity3D

Carol Carpenter (CMO) quits Unity
https://x.com/gekido/status/1803935672589324782?s=46

https://redd.it/1dkwlx3
@r_Unity3D

Читать полностью…

r/Unity3D

Figuring how to design turn-base structure

Hi, everyone, I'm an experienced developer but am new to Unity. I'm looking to design the coding structure of a turn-base game. I was wondering how y'all do it, what design patterns did you consider, and what did you end up deciding on the pattern

The reason why I'm asking this cus I was thinking of implement turns via the Event/Delegate system as mentioned in this timestamp: https://youtu.be/gB1F9G0JXOo?t=24099

The goal would be that when every enemy is done with their part of their turn, an event trigger will change the turn-enum for the player. I'm familiar with this pattern, since I worked with UI before on both webdev and Windows programs

However, after talking to my coworker, I also agreed that a simple solution is to checks every frame to change the turn-enum until all active members of that party (player or enemy) has been confirmed. Once the turn-enum is set, then every frame will also check on the enemy actions until they're done.

What's the best industry practice to go about implementing the overall turn-base system? I'm focused on making sure that pattern optimizes the codebase as best as it can

https://redd.it/1dkwg5q
@r_Unity3D

Читать полностью…

r/Unity3D

I think I finally finalized my game!

I finally finished my game Reconnaissance! I implemented every bit of feedback I could.

Every person who's played it has reached out to me saying that they had a really fun time with it, which has made me extremely happy!

Here's the trailer: https://www.youtube.com/watch?v=QOkbnDeW1lg

And here's the link to try for yourself: https://bloodyfish.itch.io/reconnaissance

Have fun :)

https://redd.it/1dkii4h
@r_Unity3D

Читать полностью…

r/Unity3D

New pre-alpha gameplay trailer for our cosy space-rover photography game. What do you think?

https://redd.it/1djojnm
@r_Unity3D

Читать полностью…

r/Unity3D

I wrote a tutorial on how to create this Plexus particle effect w/ procedurally rendered triangles.

https://redd.it/1dji4ml
@r_Unity3D

Читать полностью…

r/Unity3D

My new grid climbing works as expected /s

https://redd.it/1djkwkb
@r_Unity3D

Читать полностью…

r/Unity3D

Thought I'd share with you some of the characters I've developed for the game. What do you think?
https://redd.it/1djis0a
@r_Unity3D

Читать полностью…

r/Unity3D

How do I improve my game trailer?

https://redd.it/1djflvl
@r_Unity3D

Читать полностью…

r/Unity3D

Making Ghibli style graphics for unity (everything you see here is 3D), any feedback? Should I make a game with it?

https://redd.it/1djez1t
@r_Unity3D

Читать полностью…

r/Unity3D

Hi all ! Some updates on Midori No Kaori , the game is going forward but solo game dev is really hard , so I added rain to express my mood :D

https://redd.it/1dpar9j
@r_Unity3D

Читать полностью…

r/Unity3D

// Update is called once per frame

void Update()
{
CheckInput();
HandleJump();
}

void FixedUpdate()
{
CheckGround();
HandleXMovement();
ApplyFriction();
}

void CheckInput()
{
xInput = Input.GetAxis("Horizontal");
yInput = Input.GetAxis("Jump");
}

void HandleXMovement()
{
if (Math.Abs(xInput) > 0)
{
// increment velocity by our acceleration, then clamp within max
float increment = xInput acceleration;
float newSpeed = Mathf.Clamp(body.velocity.x + increment, -maxXSpeed, maxXSpeed);
body.velocity = new Vector2(newSpeed, body.velocity.y);

FaceInput();
}
}

void FaceInput()
{
float direction = Mathf.Sign(xInput);
transform.localScale = new Vector3(direction, 1, 1);
}

void HandleJump()
{
if (Mathf.Abs(yInput) > 0 && grounded)
{
body.velocity = new Vector2(body.velocity.x, jumpSpeed);
}
}
void CheckGround()
{
grounded = Physics2D.OverlapAreaAll(groundCheck.bounds.min, groundCheck.bounds.max, groundMask).Length > 0;
}

void ApplyFriction()
{
if (grounded && xInput == 0 && yInput == 0)
{
body.velocity
= groundDecay;
}
}
}
}

https://redd.it/1dpd6lk
@r_Unity3D

Читать полностью…

r/Unity3D

Help! Lost my Unity project files for a college game project

Post:

Hi everyone,

I need some help. I made a game for a college project a while back. The game is relatively simple, and everything was fine until my professor asked for the source files of the project, in addition to the final build.

The problem is, I only backed up the final version of the game (the Unity build), and all the source files are lost. So now, I only have the final build, and I don't have the original Unity project files.

To make things worse, I only committed about half of the game to GitHub, so I'm missing a significant portion of the project.

Is there any way to extract the source files from the final build or somehow recreate the project as it was in Unity? Any help or advice would be greatly appreciated!

final game link: https://www.mediafire.com/file/u7ay2pvijoxhrjg/SorenTheDarkChild.rar/file

Thanks in advance!

https://redd.it/1dpb8te
@r_Unity3D

Читать полностью…

r/Unity3D

I built a dev museum into my game

https://redd.it/1dp47ot
@r_Unity3D

Читать полностью…

r/Unity3D

My first game releases on Steam this summer! 90's inspired Floops Big House Adventure
https://www.youtube.com/watch?v=t1fx2Rz3orY

https://redd.it/1dp41ch
@r_Unity3D

Читать полностью…

r/Unity3D

How would I make text appear one word at a time, via clicking?

So, I want to make dialog appear one word at a time using mouse clicks. Every time the user clicks the next word appears. I can't seem to really find much online about this specific concept. Any help? <3 :)

https://redd.it/1dp3olv
@r_Unity3D

Читать полностью…

r/Unity3D

Took some advice and made my trailer punchier. What do ya think?

https://redd.it/1dkt0q4
@r_Unity3D

Читать полностью…

r/Unity3D

Hey, I just uploaded a new devlog for my Caveman Metroidvania 🗿.
In this video, I cover my process of making the combat fun and enjoyable!
https://youtu.be/w6NZ355ukiA

https://redd.it/1dkj79i
@r_Unity3D

Читать полностью…

r/Unity3D

Do you think the steak in our game moving juicy enough?

https://redd.it/1dkczq7
@r_Unity3D

Читать полностью…

r/Unity3D

Yay, first thousand downloads in a week! Is that a good statistic for a first free game?
https://redd.it/1djpfod
@r_Unity3D

Читать полностью…

r/Unity3D

What problems do you face when buying a Pixelart Tileset


Hello everyone, I want to buy a 2d pixelart tileset for a top down Game I'll be programming, but not sure what to buy and how much to spend. If you made any mistakes or faced problems in the past, I'd be happy to learn from your mistakes and problems.

https://redd.it/1djovhl
@r_Unity3D

Читать полностью…

r/Unity3D

We're making a feature-heavy bullet hell roguelite game called Relic Abyss! Today we finally revealed our steam page! Please let me know what you think!

https://redd.it/1djmdqs
@r_Unity3D

Читать полностью…

r/Unity3D

New upcoming 2D deck-builder strategy game

Hi everyone!
I'm currently working on a deck-builder strategy game, just like Clash Royale, but NOT P2W !
Here' s the Itch.io page for the game: https://1ulicaa.itch.io/the-cards-army

I document the development of the game on my YouTube channel: 1ulicaanerd?si=qOTWns3NRDK_phKV" rel="nofollow">https://youtube.com/@1ulicaanerd?si=qOTWns3NRDK_phKV

https://redd.it/1djjxbj
@r_Unity3D

Читать полностью…

r/Unity3D

I need Android testers to ne able to upgrade my game from beta to production. (Puzzle Game) - any volunteers?

Hey guys, I've been developing a game on the side for a few months now. It's just a small side project I came up with rather spontanious. I need a certain number of Android testers for Google (20 to be exact) to be able to update it form a beta test to production (make it public). It would be cool if you could send me your Play Store E-Mail (over dm of course) so that I can add you. I will then send you a link where you can download the game. (Technically you don't have to play it, I know not everyone enjoys puzzle games, but I would still appreciate the help to get me to my tester count). Technically you just need install it and open it once for it to count for google).

If you want you can of course still report any bugs or lags to me. Any feedback would be highly appreciated. There are still some performance issues I need so sort out but besides that I think everything should work.

I have deactivated advertising and everything for the test period. (Levels can theoretically be skipped with ads - this function has been removed, but the "skip button" is still there, so don't be surprised if it doesn't work)

I would really appreciate any possible help. Thanks \~ Julian

https://redd.it/1djhbri
@r_Unity3D

Читать полностью…

r/Unity3D

building simple game server tutorial
https://youtu.be/wEUqI5r8Ht4?si=lew61aXua0TKTfup

https://redd.it/1djc27y
@r_Unity3D

Читать полностью…
Subscribe to a channel