r/Unity3D – Telegram
r/Unity3D
266 subscribers
12.7K photos
15.6K videos
14 files
48K links
News about the Unity engine and project showcases from Reddit. Made possible with @reddit2telegram (@r_channels).
Download Telegram
Media is too big
VIEW IN TELEGRAM
Tried Combining Parkour, Climbing & Combat Mechanics in Unity

https://redd.it/1gu7m0h
@r_Unity3D
2d Skeletal animations, directly in Unity or other software?

I'm aware I can import a PSD, create the skeleton, add weights and animate all in Unity, but is that the best way? Do people use a different program to create the animations and then import those into Unity? What do you do?

https://redd.it/1gudkyo
@r_Unity3D
How do I call a function/run code/edit variables on a custom rule tile

I'm currently trying to implement crops into my game and I'm using custom rule tiles to do so.

The way I'm currently trying to do it is that, every time a new day starts/the in game clock reaches 24:00 and resets to 00:00, it calls a function in the noscript for the custom tile that decreases the "days until next stage" variable by 1, and when it reaches 0, it replaces it's self with what ever other tile is specified. But, when ever the next day starts, I an error:
"NullReferenceException: Object reference not set to an instance of an object dayCycle.tickTime () (at Assets/UI/dayCycle.cs:35)"

Is there a way to get this to work? Or maybe a better way of doing this I don't know of?

dayCycle:

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class dayCycle : MonoBehaviour
{
Text clocktxt;
private float RawTime = 0.0F;
private float ClockHR = 0.0F;
private float ClockMN = 0.0F;
private int ClockSpeedMultiplier = 1;

void Start()
{
clocktxt = gameObject.GetComponent<Text>();
RawTime = 1425;
InvokeRepeating("tickTime", 1, 1.0f);
clocktxt.text = ClockHR.ToString("00") + ":" + ClockMN.ToString("00");
}

void tickTime()
{

RawTime += ClockSpeedMultiplier;
ClockHR = (int)RawTime / 60;
ClockMN = (int)RawTime - (int)ClockHR * 60;

if (RawTime >= 1440)
{
RawTime = 0;
cropTile.instance.DayTick();
}

clocktxt.text = ClockHR.ToString("00") + ":" + ClockMN.ToString("00");
}
}

cropTile:

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.Tilemaps;

[CreateAssetMenu(menuName = "Tiles/Crop Tile")]

public class cropTile : RuleTile
{
public static cropTile instance;

public item item;
public NextStageType nextStageType;
public cropTile nextStage;
public ruleTileWithData lastStage;
public int daysUntilNextStage = 1;
public Tilemap tilemap;
public Vector3Int targetCell;

void Awake()
{
instance = this;
}

public enum NextStageType
{
Grow,
Final
}

public void DayTick()
{
daysUntilNextStage--;
Debug.Log(daysUntilNextStage);
if (daysUntilNextStage <= 0)
{
if (nextStageType == NextStageType.Grow)
{
tilemap.SetTile(targetCell, nextStage);
}

if (nextStageType == NextStageType.Final)
{
tilemap.SetTile(targetCell, lastStage);
}
}
}
}

https://redd.it/1guf6zs
@r_Unity3D
Media is too big
VIEW IN TELEGRAM
Some new footage of Mekkablood: Quarry Assault. Should I add more hair to Bill's arms?

https://redd.it/1guct56
@r_Unity3D
2D Character movement along a Quadratic Bézier Curve

I'm trying to get a 2D character to move along a Quadratic Bézier Curve with variable starting velocity and acceleration, without directly modifying the character's Global/Local Position. So it should be done through their velocity.

help is really appreciated as I've been struggling with coding this for a month now, I've tried numerous methods that didn't end up working.

[Also I'm using Godot but this issue is very math/physics focused & I have used Unity before so I know it's terms, and I can say confidently that game engine doesn't really matter here so I'm just looking for any help I can get\]

https://redd.it/1gui0bz
@r_Unity3D
Day one of making my Dream Game: Today I installed unity and set my project!
https://redd.it/1gumnza
@r_Unity3D
Looking for Text/Menu Game Tutorial

I’m looking for a developer tutorial to make a text/menu style game such as OGame or King of Chaos.
Last time I was teaching myself I was working through a full RPG tutorial but it spent a lot of time on things like movement and level design that are outside the scope of my first game I want to build.

I was wondering if anyone could recommend a good tutorial that’s more focused on the style of game I want to start with.

For a bit more detail, I’m aiming for mobile/browser as the release platforms and for my 2nd game I’m hoping to integrate mini-games into something like the first game.

I’m very willing to shell out a bit of money for a good Udemy, Skillshare etc. course.

Any recommendations appreciated.

https://redd.it/1guo9di
@r_Unity3D
Is That Made By Particle System?

https://i.redd.it/wofejsr6xr1e1.gif

You see my gif and what happens when the user click any block, right? There are really small pieces spread.

I need to learn how to do that. I have used particle system before but the particles there were totally different. They were not moving like that. They were just spreading like they were in space. So, what is the way to do that?

https://redd.it/1gund8o
@r_Unity3D
Media is too big
VIEW IN TELEGRAM
Prototyped a small isometric stealth game in comic book style with a 1930s setting :)

https://redd.it/1guiy1e
@r_Unity3D
This media is not supported in your browser
VIEW IN TELEGRAM
Land of Symbiosis - 8 Months Dev Progression - Co-op Sci-fi Survival Game 👋

https://redd.it/1gusxvu
@r_Unity3D
Y'all haven't failed me yet and I need your help again.

I am trying to make an enemy object patrol from one point to another. I used the Vector3.movetowards code following a tutorial to make it move to the point on its left, but it moves in the opposite direction. not to any specific point either as there are no objects or empties there.


the patrol points are stored in an array and are a child of the enemy object. but as the noscript starts, it is coded to not be a child of the enemy.


I've attached a video of the problem, and the inspector with a screenshot of the noscript too.

it has not been easy getting back to learning on my own and I am honestly frustrated at my first day back going like this.

I'd appreciate any and all help. thank you!

https://imgur.com/a/v66AhYU


Edit: in response to the comment below, I have a hard time asking for help, so I always look everywhere else before I come here asking for it. It's not easy. I don't enjoy it.

There have been kind people here who have helped me incredibly and I appreciate them for it. But if you are going to say anything unhelpful or throwing shit at me for posting this here, please save it. I've had a horrible ass week as it is. I don't need anymore negativity man. I barely have the heart to keep going down this path.


https://redd.it/1gut8xk
@r_Unity3D
How would you do clouds on a 2D top down game?

Hi Unity Devs!
First of all, Sorry If this a dumb question but I'm kind of a noob on Unity and I'm learning! 😅
I developing a 2D top down game (kind of a 2D Zelda game) and I wanted to add a cloud system to give more depth to the scene.

My First approach would be to have some gameobjects with a semitrasparent Cloud texture that slowly moves on top of the scene that loops around.

I see some other approaches using shaders and particle systems but most of them are about 3D games..

Also the only tutorials I have seen are about clouds on a 2D side scroller game..

How would you do It? Do you now any good tutorial fornmy specific case?

Thanks in advance! 🙏

https://redd.it/1guv4if
@r_Unity3D
is there a way to play a particle system from awake, halfway through??

ok lets see if i can explain this well enough.

so lets say i have a light snow particle system. it falls pretty slow of course. when the scene loads the particle system starts. but since the snow falls so slowly theres like, a 10-15 second period where the particles are too high to see them. you kind of have to wait for it to really kick in the get the full effect. is there anything that allows me to just start a particle system halfway through that isnt creating long load times??

https://redd.it/1guvv30
@r_Unity3D
This media is not supported in your browser
VIEW IN TELEGRAM
Our artist added some cool animation to the Resource and Ammo UI!
https://redd.it/1gv09je
@r_Unity3D
This media is not supported in your browser
VIEW IN TELEGRAM
Making of hut on chicken legs for envirovent in my turn-based tactic game

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